Text Generation
MLX
Safetensors
llama
autocomplete
text-completion
grammar-correction
on-device
apple-silicon
conversational
5-bit
Instructions to use nikimoriOne/EuroLLM-1.7B-Pretype-5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nikimoriOne/EuroLLM-1.7B-Pretype-5bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("nikimoriOne/EuroLLM-1.7B-Pretype-5bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use nikimoriOne/EuroLLM-1.7B-Pretype-5bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "nikimoriOne/EuroLLM-1.7B-Pretype-5bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "nikimoriOne/EuroLLM-1.7B-Pretype-5bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nikimoriOne/EuroLLM-1.7B-Pretype-5bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Download tokenizer.json from nikimoriOne/EuroLLM-1.7B-Pretype-5bit: direct link, hf CLI and curl.
- Browser
- Download file 15.7 MB
-
https://huggingface.co/nikimoriOne/EuroLLM-1.7B-Pretype-5bit/resolve/main/tokenizer.json
- Command line
-
hf download hf://nikimoriOne/EuroLLM-1.7B-Pretype-5bit/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/nikimoriOne/EuroLLM-1.7B-Pretype-5bit/resolve/main/tokenizer.json
15.7 MB
- Xet hash:
- 6c713fa2d2401e8a8b01f945a8900dfbd1aa52ea7dcfccfb914b21286145c5d7
- Size of remote file:
- 15.7 MB
- SHA256:
- 8148ebb04db48c5ed112d808813d02c95934f2838e0f55d2ae2e3bbbce6483f1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.