SlipsKnuten commited on
Commit
717fb50
·
verified ·
1 Parent(s): 21ab357

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +56 -39
  3. korkortlarare-f16.gguf +3 -0
.gitattributes CHANGED
@@ -40,3 +40,4 @@ gguf/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
  gguf_new/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  lora/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  merged/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
40
  gguf_new/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  lora/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  merged/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
+ korkortlarare-f16.gguf filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,59 +1,76 @@
1
  ---
2
- base_model: unsloth/Qwen2.5-7B-Instruct
 
 
3
  library_name: transformers
4
- model_name: korkortlarare
5
  tags:
6
- - generated_from_trainer
7
- - trl
8
- - unsloth
9
- - sft
10
- licence: license
 
 
11
  ---
12
 
13
- # Model Card for korkortlarare
14
 
15
- This model is a fine-tuned version of [unsloth/Qwen2.5-7B-Instruct](https://huggingface.co/unsloth/Qwen2.5-7B-Instruct).
16
- It has been trained using [TRL](https://github.com/huggingface/trl).
17
 
18
- ## Quick start
19
 
20
- ```python
21
- from transformers import pipeline
 
 
 
 
22
 
23
- question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
24
- generator = pipeline("text-generation", model="None", device="cuda")
25
- output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
26
- print(output["generated_text"])
 
 
 
 
 
 
 
 
 
 
 
 
27
  ```
28
 
29
- ## Training procedure
30
 
31
-
 
 
32
 
 
33
 
34
- This model was trained with SFT.
 
 
35
 
36
- ### Framework versions
37
 
38
- - TRL: 0.24.0
39
- - Transformers: 4.57.3
40
- - Pytorch: 2.9.1+cu128
41
- - Datasets: 4.3.0
42
- - Tokenizers: 0.22.1
43
 
44
- ## Citations
45
 
 
 
 
46
 
 
47
 
48
- Cite TRL as:
49
-
50
- ```bibtex
51
- @misc{vonwerra2022trl,
52
- title = {{TRL: Transformer Reinforcement Learning}},
53
- author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
54
- year = 2020,
55
- journal = {GitHub repository},
56
- publisher = {GitHub},
57
- howpublished = {\url{https://github.com/huggingface/trl}}
58
- }
59
- ```
 
1
  ---
2
+ license: apache-2.0
3
+ language:
4
+ - sv
5
  library_name: transformers
6
+ base_model: Qwen/Qwen2.5-7B-Instruct
7
  tags:
8
+ - gguf
9
+ - swedish
10
+ - driving-license
11
+ - körkort
12
+ - fine-tuned
13
+ - qwen2
14
+ pipeline_tag: text-generation
15
  ---
16
 
17
+ # Korkortlarare - Swedish Driving License Theory Assistant
18
 
19
+ A fine-tuned Qwen2.5-7B-Instruct model specialized for Swedish driving license theory (körkortsteori).
 
20
 
21
+ ## Model Details
22
 
23
+ - **Base Model:** [Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct)
24
+ - **Fine-tuning Method:** LoRA with Unsloth
25
+ - **Training Data:** 4,080 Swedish driving license Q&A pairs
26
+ - **Format:** GGUF F16 (full precision)
27
+ - **Size:** 15.2 GB
28
+ - **Language:** Swedish (sv)
29
 
30
+ ## Intended Use
31
+
32
+ This model is designed to help users study for the Swedish driving license theory test (körkortsteori). It can answer questions about:
33
+
34
+ - Traffic rules (Trafikregler)
35
+ - Road signs (Vägmärken)
36
+ - Safety (Säkerhet)
37
+ - Vehicle and environment (Fordon och Miljö)
38
+ - Parking and special situations
39
+ - Laws and regulations
40
+ - Practical driving
41
+
42
+ ## Usage with Ollama
43
+
44
+ ```bash
45
+ ollama run SlipsKnuten/korkortlarare
46
  ```
47
 
48
+ Or download and create locally:
49
 
50
+ ```bash
51
+ ollama create korkortlarare -f Modelfile
52
+ ```
53
 
54
+ ## Usage with llama.cpp
55
 
56
+ ```bash
57
+ ./main -m korkortlarare-f16.gguf -p "Vad innebär högerregeln?"
58
+ ```
59
 
60
+ ## Training
61
 
62
+ The model was fine-tuned using:
63
+ - **Framework:** Unsloth + TRL
64
+ - **Method:** SFT (Supervised Fine-Tuning) with LoRA
65
+ - **Epochs:** 5
66
+ - **Dataset:** Custom Swedish driving license Q&A dataset
67
 
68
+ ## Limitations
69
 
70
+ - The model is specifically trained for Swedish driving license theory and may not perform well on other topics
71
+ - Always verify important information with official sources (Trafikverket)
72
+ - This is an educational tool and should not replace official study materials
73
 
74
+ ## License
75
 
76
+ Apache 2.0
 
 
 
 
 
 
 
 
 
 
 
korkortlarare-f16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0346b64d159f65d48a0263834a57170f6a7c39d937779a700820ad9db875efc
3
+ size 15238457376