How to use from
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 "SlipsKnuten/korkortlarare" \
    --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": "SlipsKnuten/korkortlarare",
		"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 "SlipsKnuten/korkortlarare" \
        --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": "SlipsKnuten/korkortlarare",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

Korkortlarare - Swedish Driving License Theory Assistant

A fine-tuned Qwen2.5-7B-Instruct model specialized for Swedish driving license theory (körkortsteori).

Model Details

  • Base Model: Qwen2.5-7B-Instruct
  • Fine-tuning Method: LoRA with Unsloth
  • Training Data: 4,080 Swedish driving license Q&A pairs
  • Format: GGUF F16 (full precision)
  • Size: 15.2 GB
  • Language: Swedish (sv)

Intended Use

This model is designed to help users study for the Swedish driving license theory test (körkortsteori). It can answer questions about:

  • Traffic rules (Trafikregler)
  • Road signs (Vägmärken)
  • Safety (Säkerhet)
  • Vehicle and environment (Fordon och Miljö)
  • Parking and special situations
  • Laws and regulations
  • Practical driving

Usage with Ollama

ollama run SlipsKnuten/korkortlarare

Or download and create locally:

ollama create korkortlarare -f Modelfile

Usage with llama.cpp

./main -m korkortlarare-f16.gguf -p "Vad innebär högerregeln?"

Training

The model was fine-tuned using:

  • Framework: Unsloth + TRL
  • Method: SFT (Supervised Fine-Tuning) with LoRA
  • Epochs: 5
  • Dataset: Custom Swedish driving license Q&A dataset

Limitations

  • The model is specifically trained for Swedish driving license theory and may not perform well on other topics
  • Always verify important information with official sources (Trafikverket)
  • This is an educational tool and should not replace official study materials

License

Apache 2.0

Downloads last month
3
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for SlipsKnuten/korkortlarare

Base model

Qwen/Qwen2.5-7B
Quantized
(378)
this model