Instructions to use utter-project/EuroLLM-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use utter-project/EuroLLM-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="utter-project/EuroLLM-1.7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("utter-project/EuroLLM-1.7B") model = AutoModelForCausalLM.from_pretrained("utter-project/EuroLLM-1.7B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use utter-project/EuroLLM-1.7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "utter-project/EuroLLM-1.7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "utter-project/EuroLLM-1.7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/utter-project/EuroLLM-1.7B
- SGLang
How to use utter-project/EuroLLM-1.7B 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 "utter-project/EuroLLM-1.7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "utter-project/EuroLLM-1.7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "utter-project/EuroLLM-1.7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "utter-project/EuroLLM-1.7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use utter-project/EuroLLM-1.7B with Docker Model Runner:
docker model run hf.co/utter-project/EuroLLM-1.7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ language:
|
|
| 24 |
- lv
|
| 25 |
- et
|
| 26 |
- bg
|
| 27 |
-
- no
|
| 28 |
- ca
|
| 29 |
- hr
|
| 30 |
- ga
|
|
@@ -36,6 +36,7 @@ language:
|
|
| 36 |
- ja
|
| 37 |
- ar
|
| 38 |
- hi
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
## *Model updated on September 24*
|
|
@@ -157,4 +158,4 @@ Results show that EuroLLM-1.7B is superior to TinyLlama-v1.1 and similar to Gemm
|
|
| 157 |
|
| 158 |
## Bias, Risks, and Limitations
|
| 159 |
|
| 160 |
-
EuroLLM-1.7B has not been aligned to human preferences, so the model may generate problematic outputs (e.g., hallucinations, harmful content, or false statements).
|
|
|
|
| 24 |
- lv
|
| 25 |
- et
|
| 26 |
- bg
|
| 27 |
+
- 'no'
|
| 28 |
- ca
|
| 29 |
- hr
|
| 30 |
- ga
|
|
|
|
| 36 |
- ja
|
| 37 |
- ar
|
| 38 |
- hi
|
| 39 |
+
library_name: transformers
|
| 40 |
---
|
| 41 |
|
| 42 |
## *Model updated on September 24*
|
|
|
|
| 158 |
|
| 159 |
## Bias, Risks, and Limitations
|
| 160 |
|
| 161 |
+
EuroLLM-1.7B has not been aligned to human preferences, so the model may generate problematic outputs (e.g., hallucinations, harmful content, or false statements).
|