Text Generation
Transformers
Safetensors
Dutch
English
qwen3
dutch
nederlands
instruction-tuned
question-answering
summarization
conversational
text-generation-inference
Instructions to use ToetsChecker-Research/boterham with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ToetsChecker-Research/boterham with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ToetsChecker-Research/boterham") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ToetsChecker-Research/boterham") model = AutoModelForCausalLM.from_pretrained("ToetsChecker-Research/boterham", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ToetsChecker-Research/boterham with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ToetsChecker-Research/boterham" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ToetsChecker-Research/boterham", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ToetsChecker-Research/boterham
- SGLang
How to use ToetsChecker-Research/boterham 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 "ToetsChecker-Research/boterham" \ --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": "ToetsChecker-Research/boterham", "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 "ToetsChecker-Research/boterham" \ --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": "ToetsChecker-Research/boterham", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ToetsChecker-Research/boterham with Docker Model Runner:
docker model run hf.co/ToetsChecker-Research/boterham
Download ronde4/config.json from ToetsChecker-Research/boterham: direct link, hf CLI and curl.
- Browser
- Download file 998 Bytes
-
https://huggingface.co/ToetsChecker-Research/boterham/resolve/main/ronde4/config.json
- Command line
-
hf download hf://ToetsChecker-Research/boterham/ronde4/config.json
-
curl -L -o config.json https://huggingface.co/ToetsChecker-Research/boterham/resolve/main/ronde4/config.json
998 Bytes
| { | |
| "checkpoint": "runs/boterham-0.5B-r3/eind.pt", | |
| "data": "data/instructie/ronde4-schoon.jsonl.gz", | |
| "naam": "boterham-0.5B-r4-proef", | |
| "max_len": 2048, | |
| "micro_tokens": 6144, | |
| "max_micro_batch": 128, | |
| "bucket": 64, | |
| "grad_accum": 11, | |
| "compile": true, | |
| "epochs": 1.0, | |
| "lr": 2e-05, | |
| "min_lr_frac": 0.05, | |
| "warmup_frac": 0.03, | |
| "weight_decay": 0.1, | |
| "beta1": 0.9, | |
| "beta2": 0.95, | |
| "grad_clip": 1.0, | |
| "val_frac": 0.02, | |
| "val_max": 1000, | |
| "eval_every": 100, | |
| "log_every": 10, | |
| "grad_checkpoint": false, | |
| "optimizer": "adamw", | |
| "stop_bij_uitwijken": true, | |
| "geduld": 0, | |
| "stopmaat": "taak", | |
| "seed": 20250815, | |
| "max_steps": 1247, | |
| "batches_per_epoch": 13722, | |
| "wereldgrootte": 1, | |
| "herkomst": { | |
| "git_commit": "", | |
| "git_schoon": true, | |
| "data_sha256": "4690ab4b3dd699467607e346a1c78b29ea9c0a27df7746d7d3002182160d819a", | |
| "data_bytes": 111910976, | |
| "tokenizer_bytes": 2338412, | |
| "torch": "2.6.0+cu124", | |
| "python": "3.12.3", | |
| "gpu": "NVIDIA L4" | |
| } | |
| } |