Text Generation
Transformers
Safetensors
English
French
qwen2
conversational
text-generation-inference
Instructions to use HoangHa/Pensez-v0.1-e5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HoangHa/Pensez-v0.1-e5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HoangHa/Pensez-v0.1-e5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("HoangHa/Pensez-v0.1-e5") model = AutoModelForMultimodalLM.from_pretrained("HoangHa/Pensez-v0.1-e5") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HoangHa/Pensez-v0.1-e5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HoangHa/Pensez-v0.1-e5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HoangHa/Pensez-v0.1-e5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HoangHa/Pensez-v0.1-e5
- SGLang
How to use HoangHa/Pensez-v0.1-e5 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 "HoangHa/Pensez-v0.1-e5" \ --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": "HoangHa/Pensez-v0.1-e5", "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 "HoangHa/Pensez-v0.1-e5" \ --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": "HoangHa/Pensez-v0.1-e5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HoangHa/Pensez-v0.1-e5 with Docker Model Runner:
docker model run hf.co/HoangHa/Pensez-v0.1-e5
Add pipeline tag and paper link (#1)
Browse files- Add pipeline tag and paper link (07c04b88480f310b9a91261ff24d30565674e057)
Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
datasets:
|
| 5 |
- HoangHa/Pensez-v0.1
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
- fr
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
---
|
| 12 |
|
|
|
|
| 13 |
<div align="center">
|
| 14 |
|
| 15 |
# Pensez: Less Data, Better Reasoning – Rethinking French LLM
|
|
@@ -23,7 +25,7 @@ base_model:
|
|
| 23 |
|
| 24 |
## About
|
| 25 |
|
| 26 |
-
Paper: [Pensez: Less Data, Better Reasoning - Rethinking French LLM](https://
|
| 27 |
|
| 28 |
Pensez is a bilingual (French-English) reasoning model designed to maximize efficiency with significantly reduced training data. The model leverages a curated dataset focusing on daily reasoning tasks and scientific questions to enhance performance.
|
| 29 |
|
|
@@ -149,7 +151,7 @@ More details: [Training Config](https://huggingface.co/HoangHa/Pensez-v0.1-e5/bl
|
|
| 149 |
year={2025},
|
| 150 |
archivePrefix={arXiv},
|
| 151 |
primaryClass={cs.CL},
|
| 152 |
-
url={},
|
| 153 |
}
|
| 154 |
```
|
| 155 |
|
|
@@ -165,4 +167,5 @@ More details: [Training Config](https://huggingface.co/HoangHa/Pensez-v0.1-e5/bl
|
|
| 165 |
- [Deepspeed](https://github.com/deepspeedai/DeepSpeed)
|
| 166 |
- [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness)
|
| 167 |
- [Hyperbolic](https://hyperbolic.xyz/)
|
| 168 |
-
- [Modal](https://modal.com/)
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen2.5-7B-Instruct
|
| 4 |
datasets:
|
| 5 |
- HoangHa/Pensez-v0.1
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
- fr
|
| 9 |
+
library_name: transformers
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
|
| 14 |
+
```markdown
|
| 15 |
<div align="center">
|
| 16 |
|
| 17 |
# Pensez: Less Data, Better Reasoning – Rethinking French LLM
|
|
|
|
| 25 |
|
| 26 |
## About
|
| 27 |
|
| 28 |
+
Paper: [Pensez: Less Data, Better Reasoning - Rethinking French LLM](https://huggingface.co/papers/2503.13661)
|
| 29 |
|
| 30 |
Pensez is a bilingual (French-English) reasoning model designed to maximize efficiency with significantly reduced training data. The model leverages a curated dataset focusing on daily reasoning tasks and scientific questions to enhance performance.
|
| 31 |
|
|
|
|
| 151 |
year={2025},
|
| 152 |
archivePrefix={arXiv},
|
| 153 |
primaryClass={cs.CL},
|
| 154 |
+
url={https://arxiv.org/abs/2503.13661},
|
| 155 |
}
|
| 156 |
```
|
| 157 |
|
|
|
|
| 167 |
- [Deepspeed](https://github.com/deepspeedai/DeepSpeed)
|
| 168 |
- [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness)
|
| 169 |
- [Hyperbolic](https://hyperbolic.xyz/)
|
| 170 |
+
- [Modal](https://modal.com/)
|
| 171 |
+
```
|