MaziyarPanahi
commited on
Commit
•
6004bf6
1
Parent(s):
1e25a70
Create README.md (#1)
Browse files- Create README.md (60c1eb9046a0e3107136fc70ed08cc078e1feabd)
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
library_name: transformers
|
5 |
+
tags:
|
6 |
+
- chat
|
7 |
+
- phi
|
8 |
+
- phi3
|
9 |
+
- phi3.5
|
10 |
+
- finetune
|
11 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
12 |
+
datasets:
|
13 |
+
- MaziyarPanahi/truthy-dpo-v0.1-axolotl
|
14 |
+
model_name: calme-2.1-phi3.5-4b
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
inference: false
|
17 |
+
model_creator: MaziyarPanahi
|
18 |
+
quantized_by: MaziyarPanahi
|
19 |
+
license: mit
|
20 |
+
---
|
21 |
+
|
22 |
+
<img src="./calme-2.webp" alt="Calme-2 Models" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
23 |
+
|
24 |
+
# MaziyarPanahi/calme-2.1-phi3.5-4b
|
25 |
+
|
26 |
+
This model is a fine-tuned version of the `microsoft/Phi-3.5-mini-instruct`, pushing the boundaries of natural language understanding and generation even further. My goal was to create a versatile and robust model that excels across a wide range of benchmarks and real-world applications.
|
27 |
+
|
28 |
+
## Use Cases
|
29 |
+
|
30 |
+
This model is suitable for a wide range of applications, including but not limited to:
|
31 |
+
|
32 |
+
- Advanced question-answering systems
|
33 |
+
- Intelligent chatbots and virtual assistants
|
34 |
+
- Content generation and summarization
|
35 |
+
- Code generation and analysis
|
36 |
+
- Complex problem-solving and decision support
|
37 |
+
|
38 |
+
# ⚡ Quantized GGUF
|
39 |
+
|
40 |
+
Coming soon!
|
41 |
+
|
42 |
+
|
43 |
+
# 🏆 [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
44 |
+
|
45 |
+
Coming soon!
|
46 |
+
|
47 |
+
# Prompt Template
|
48 |
+
|
49 |
+
This model uses `ChatML` prompt template:
|
50 |
+
|
51 |
+
```
|
52 |
+
<|system|>
|
53 |
+
You are a helpful assistant.<|end|>
|
54 |
+
<|user|>
|
55 |
+
How to explain Internet for a medieval knight?<|end|>
|
56 |
+
<|assistant|>
|
57 |
+
````
|
58 |
+
|
59 |
+
# How to use
|
60 |
+
|
61 |
+
|
62 |
+
```python
|
63 |
+
|
64 |
+
# Use a pipeline as a high-level helper
|
65 |
+
|
66 |
+
from transformers import pipeline
|
67 |
+
|
68 |
+
messages = [
|
69 |
+
{"role": "user", "content": "Who are you?"},
|
70 |
+
]
|
71 |
+
pipe = pipeline("text-generation", model="MaziyarPanahi/calme-2.1-phi3.5-4b")
|
72 |
+
pipe(messages)
|
73 |
+
|
74 |
+
|
75 |
+
# Load model directly
|
76 |
+
|
77 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
78 |
+
|
79 |
+
tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/calme-2.1-phi3.5-4b")
|
80 |
+
model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/calme-2.1-phi3.5-4b")
|
81 |
+
```
|
82 |
+
|
83 |
+
|
84 |
+
# Ethical Considerations
|
85 |
+
|
86 |
+
As with any large language model, users should be aware of potential biases and limitations. We recommend implementing appropriate safeguards and human oversight when deploying this model in production environments.
|