Instructions to use utter-project/EuroMoE-2.6B-A0.6B-2512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use utter-project/EuroMoE-2.6B-A0.6B-2512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="utter-project/EuroMoE-2.6B-A0.6B-2512")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("utter-project/EuroMoE-2.6B-A0.6B-2512") model = AutoModelForCausalLM.from_pretrained("utter-project/EuroMoE-2.6B-A0.6B-2512", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use utter-project/EuroMoE-2.6B-A0.6B-2512 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "utter-project/EuroMoE-2.6B-A0.6B-2512" # 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/EuroMoE-2.6B-A0.6B-2512", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/utter-project/EuroMoE-2.6B-A0.6B-2512
- SGLang
How to use utter-project/EuroMoE-2.6B-A0.6B-2512 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/EuroMoE-2.6B-A0.6B-2512" \ --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/EuroMoE-2.6B-A0.6B-2512", "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/EuroMoE-2.6B-A0.6B-2512" \ --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/EuroMoE-2.6B-A0.6B-2512", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use utter-project/EuroMoE-2.6B-A0.6B-2512 with Docker Model Runner:
docker model run hf.co/utter-project/EuroMoE-2.6B-A0.6B-2512
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- de
|
| 6 |
+
- es
|
| 7 |
+
- fr
|
| 8 |
+
- it
|
| 9 |
+
- pt
|
| 10 |
+
- pl
|
| 11 |
+
- nl
|
| 12 |
+
- tr
|
| 13 |
+
- sv
|
| 14 |
+
- cs
|
| 15 |
+
- el
|
| 16 |
+
- hu
|
| 17 |
+
- ro
|
| 18 |
+
- fi
|
| 19 |
+
- uk
|
| 20 |
+
- sl
|
| 21 |
+
- sk
|
| 22 |
+
- da
|
| 23 |
+
- lt
|
| 24 |
+
- lv
|
| 25 |
+
- et
|
| 26 |
+
- bg
|
| 27 |
+
- 'no'
|
| 28 |
+
- ca
|
| 29 |
+
- hr
|
| 30 |
+
- ga
|
| 31 |
+
- mt
|
| 32 |
+
- gl
|
| 33 |
+
- zh
|
| 34 |
+
- ru
|
| 35 |
+
- ko
|
| 36 |
+
- ja
|
| 37 |
+
- ar
|
| 38 |
+
- hi
|
| 39 |
+
library_name: transformers
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
# Model Card for EuroLLM-9B-2512
|
| 43 |
+
|
| 44 |
+
This is the model card for EuroLLM-2.6B-A0.6-2512, the pre-trained model for [EuroLLM-2.6B-A0.6-2512-Instruct](https://huggingface.co/utter-project/EuroMoE-2.6B-A0.6B-Instruct-2512).
|
| 45 |
+
|
| 46 |
+
- **Developed by:** Instituto Superior Técnico - University of Lisbon, Instituto de Telecomunicações, University of Edinburgh, Aveni, Unbabel, University of Paris-Saclay, Artefact Research Center, University of Amsterdam, Naver Labs, Sorbonne Université.
|
| 47 |
+
- **Funded by:** European Union.
|
| 48 |
+
- **Model type:** A 2.6B parameter multilingual transfomer LLM.
|
| 49 |
+
- **Language(s) (NLP):** Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Slovak, Slovenian, Spanish, Swedish, Arabic, Catalan, Chinese, Galician, Hindi, Japanese, Korean, Norwegian, Russian, Turkish, and Ukrainian.
|
| 50 |
+
- **License:** Apache License 2.0.
|
| 51 |
+
|
| 52 |
+
## Bias, Risks, and Limitations
|
| 53 |
+
|
| 54 |
+
This model has not been aligned to human preferences, so the model may generate problematic outputs (e.g., hallucinations, harmful content, or false statements).
|