Text Generation
Transformers
Safetensors
French
English
phi3
french
chocolatine
conversational
custom_code
Eval Results (legacy)
text-generation-inference
Instructions to use jpacifico/Chocolatine-14B-Instruct-DPO-v1.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jpacifico/Chocolatine-14B-Instruct-DPO-v1.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jpacifico/Chocolatine-14B-Instruct-DPO-v1.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jpacifico/Chocolatine-14B-Instruct-DPO-v1.2
- SGLang
How to use jpacifico/Chocolatine-14B-Instruct-DPO-v1.2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jpacifico/Chocolatine-14B-Instruct-DPO-v1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jpacifico/Chocolatine-14B-Instruct-DPO-v1.2 with Docker Model Runner:
docker model run hf.co/jpacifico/Chocolatine-14B-Instruct-DPO-v1.2
Update README.md
Browse files
README.md
CHANGED
|
@@ -147,30 +147,34 @@ Chocolatine-14B-Instruct-DPO-v1.2 outperforms its previous versions and its base
|
|
| 147 |
########## First turn ##########
|
| 148 |
score
|
| 149 |
model turn
|
| 150 |
-
gpt-4o-mini 1 9.
|
| 151 |
-
Chocolatine-2-14B-Instruct-v2.0.1 1 8.
|
| 152 |
-
|
| 153 |
-
Chocolatine-14B-Instruct-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
|
|
|
|
|
|
| 167 |
|
| 168 |
########## Second turn ##########
|
| 169 |
score
|
| 170 |
model turn
|
| 171 |
Chocolatine-2-14B-Instruct-v2.0.1 2 9.275000
|
| 172 |
gpt-4o-mini 2 8.912500
|
|
|
|
| 173 |
Chocolatine-14B-Instruct-DPO-v1.2 2 8.337500
|
|
|
|
| 174 |
phi-4 2 8.131250
|
| 175 |
Chocolatine-3B-Instruct-DPO-Revised 2 7.937500
|
| 176 |
Chocolatine-3B-Instruct-DPO-v1.2 2 7.862500
|
|
@@ -191,7 +195,9 @@ vigogne-2-7b-chat 2 2.775000
|
|
| 191 |
model
|
| 192 |
gpt-4o-mini 9.100000
|
| 193 |
Chocolatine-2-14B-Instruct-v2.0.1 9.093750
|
|
|
|
| 194 |
Chocolatine-14B-Instruct-DPO-v1.2 8.475000
|
|
|
|
| 195 |
phi-4 8.215625
|
| 196 |
Chocolatine-14B-Instruct-4k-DPO 8.187500
|
| 197 |
Chocolatine-3B-Instruct-DPO-v1.2 8.118750
|
|
@@ -212,7 +218,7 @@ vigogne-2-7b-chat 4.218750
|
|
| 212 |
|
| 213 |
You can run this model using my [Colab notebook](https://github.com/jpacifico/Chocolatine-LLM/blob/main/Chocolatine_14B_inference_test_colab.ipynb)
|
| 214 |
|
| 215 |
-
You can also run Chocolatine using the following code:
|
| 216 |
|
| 217 |
```python
|
| 218 |
import transformers
|
|
|
|
| 147 |
########## First turn ##########
|
| 148 |
score
|
| 149 |
model turn
|
| 150 |
+
gpt-4o-mini 1 9.287500
|
| 151 |
+
Chocolatine-2-14B-Instruct-v2.0.1 1 8.912500
|
| 152 |
+
Qwen2.5-14B-Instruct 1 8.887500
|
| 153 |
+
Chocolatine-14B-Instruct-4k-DPO 1 8.637500
|
| 154 |
+
Chocolatine-14B-Instruct-DPO-v1.2 1 8.612500
|
| 155 |
+
Phi-3.5-mini-instruct 1 8.525000
|
| 156 |
+
Chocolatine-3B-Instruct-DPO-v1.2 1 8.375000
|
| 157 |
+
DeepSeek-R1-Distill-Qwen-14B 1 8.375000
|
| 158 |
+
phi-4 1 8.300000
|
| 159 |
+
Phi-3-medium-4k-instruct 1 8.225000
|
| 160 |
+
gpt-3.5-turbo 1 8.137500
|
| 161 |
+
Chocolatine-3B-Instruct-DPO-Revised 1 7.987500
|
| 162 |
+
Daredevil-8B 1 7.887500
|
| 163 |
+
Meta-Llama-3.1-8B-Instruct 1 7.050000
|
| 164 |
+
vigostral-7b-chat 1 6.787500
|
| 165 |
+
Mistral-7B-Instruct-v0.3 1 6.750000
|
| 166 |
+
gemma-2-2b-it 1 6.450000
|
| 167 |
+
French-Alpaca-7B-Instruct_beta 1 5.687500
|
| 168 |
+
vigogne-2-7b-chat 1 5.662500
|
| 169 |
|
| 170 |
########## Second turn ##########
|
| 171 |
score
|
| 172 |
model turn
|
| 173 |
Chocolatine-2-14B-Instruct-v2.0.1 2 9.275000
|
| 174 |
gpt-4o-mini 2 8.912500
|
| 175 |
+
Qwen2.5-14B-Instruct 2 8.912500
|
| 176 |
Chocolatine-14B-Instruct-DPO-v1.2 2 8.337500
|
| 177 |
+
DeepSeek-R1-Distill-Qwen-14B 2 8.200000
|
| 178 |
phi-4 2 8.131250
|
| 179 |
Chocolatine-3B-Instruct-DPO-Revised 2 7.937500
|
| 180 |
Chocolatine-3B-Instruct-DPO-v1.2 2 7.862500
|
|
|
|
| 195 |
model
|
| 196 |
gpt-4o-mini 9.100000
|
| 197 |
Chocolatine-2-14B-Instruct-v2.0.1 9.093750
|
| 198 |
+
Qwen2.5-14B-Instruct 8.900000
|
| 199 |
Chocolatine-14B-Instruct-DPO-v1.2 8.475000
|
| 200 |
+
DeepSeek-R1-Distill-Qwen-14B 8.287500
|
| 201 |
phi-4 8.215625
|
| 202 |
Chocolatine-14B-Instruct-4k-DPO 8.187500
|
| 203 |
Chocolatine-3B-Instruct-DPO-v1.2 8.118750
|
|
|
|
| 218 |
|
| 219 |
You can run this model using my [Colab notebook](https://github.com/jpacifico/Chocolatine-LLM/blob/main/Chocolatine_14B_inference_test_colab.ipynb)
|
| 220 |
|
| 221 |
+
You can also run Chocolatine-2 using the following code:
|
| 222 |
|
| 223 |
```python
|
| 224 |
import transformers
|