Text Generation
Transformers
Safetensors
Dutch
llama
text-simplification
dutch
accessibility
government
conversational
text-generation-inference
Instructions to use UWV/leesplank-noot-eurollm-1.7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UWV/leesplank-noot-eurollm-1.7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UWV/leesplank-noot-eurollm-1.7b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("UWV/leesplank-noot-eurollm-1.7b") model = AutoModelForCausalLM.from_pretrained("UWV/leesplank-noot-eurollm-1.7b", device_map="auto") 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 UWV/leesplank-noot-eurollm-1.7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UWV/leesplank-noot-eurollm-1.7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UWV/leesplank-noot-eurollm-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/UWV/leesplank-noot-eurollm-1.7b
- SGLang
How to use UWV/leesplank-noot-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 "UWV/leesplank-noot-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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UWV/leesplank-noot-eurollm-1.7b", "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 "UWV/leesplank-noot-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/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UWV/leesplank-noot-eurollm-1.7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use UWV/leesplank-noot-eurollm-1.7b with Docker Model Runner:
docker model run hf.co/UWV/leesplank-noot-eurollm-1.7b
Update README.md
Browse files
README.md
CHANGED
|
@@ -89,26 +89,37 @@ optimizer: AdamW (β₁=0.9, β₂=0.999, ε=1e-8)
|
|
| 89 |
neftune_noise_alpha: 5
|
| 90 |
per_device_train_batch_size: 32
|
| 91 |
gradient_accumulation_steps: 2
|
| 92 |
-
|
| 93 |
-
# Steps & Efficiency
|
| 94 |
-
total_training_steps: 2,960
|
| 95 |
packing_enabled: true (~5x efficiency gain)
|
| 96 |
eval_steps: 100
|
| 97 |
save_steps: 200
|
| 98 |
logging_steps: 10
|
| 99 |
-
|
| 100 |
-
# Final Metrics
|
| 101 |
-
final_train_loss: 1.127
|
| 102 |
-
final_eval_loss: 1.041
|
| 103 |
```
|
| 104 |
|
| 105 |
### Hardware & Distributed Training
|
| 106 |
- **GPUs**: 4× AMD MI300X (192GB total VRAM)
|
| 107 |
-
- **Training Time**: 6 hours 47 minutes (2.0 epochs, 2,960 steps)
|
| 108 |
- **FSDP**: Full sharding with activation checkpointing
|
| 109 |
-
- **Peak Memory**: 71GB per GPU
|
| 110 |
- **Effective Batch Size**: 256 (32 × 4 GPUs × 2 gradient accumulation)
|
| 111 |
- **Packing**: Enabled for efficient sequence batching
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
### Dataset Engineering
|
| 114 |
|
|
|
|
| 89 |
neftune_noise_alpha: 5
|
| 90 |
per_device_train_batch_size: 32
|
| 91 |
gradient_accumulation_steps: 2
|
|
|
|
|
|
|
|
|
|
| 92 |
packing_enabled: true (~5x efficiency gain)
|
| 93 |
eval_steps: 100
|
| 94 |
save_steps: 200
|
| 95 |
logging_steps: 10
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
```
|
| 97 |
|
| 98 |
### Hardware & Distributed Training
|
| 99 |
- **GPUs**: 4× AMD MI300X (192GB total VRAM)
|
|
|
|
| 100 |
- **FSDP**: Full sharding with activation checkpointing
|
|
|
|
| 101 |
- **Effective Batch Size**: 256 (32 × 4 GPUs × 2 gradient accumulation)
|
| 102 |
- **Packing**: Enabled for efficient sequence batching
|
| 103 |
+
- **Total Training Steps**: 2,960
|
| 104 |
+
- **Training Time**: 6 hours 47 minutes (2.0 epochs, 2,960 steps)
|
| 105 |
+
- **Peak Memory**: 71GB per GPU
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
### Training Progress
|
| 109 |
+
|
| 110 |
+
The following charts show the training dynamics over 2,960 steps (2 epochs with sequence packing):
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
*Training loss showing rapid initial convergence from 2.0 to ~1.3 within 500 steps, stabilizing at 1.127*
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
*Evaluation loss measured every 100 steps, final value: 1.041*
|
| 117 |
+
|
| 118 |
+
**Key observations:**
|
| 119 |
+
- Rapid convergence in first 500 steps due to effective initialization from base model
|
| 120 |
+
- Smooth cosine learning rate schedule with 200 warmup steps
|
| 121 |
+
- Consistent improvement throughout both epochs
|
| 122 |
+
- Stable training with no signs of overfitting (eval loss < train loss)
|
| 123 |
|
| 124 |
### Dataset Engineering
|
| 125 |
|