khadim-hussain commited on
Commit
d3ffe0f
·
verified ·
1 Parent(s): 99fcdf0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +116 -0
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-14B
3
+ tags:
4
+ - qwen3
5
+ - gguf
6
+ - quantized
7
+ - q4_k_m
8
+ - f16
9
+ - stem
10
+ - science
11
+ - education
12
+ - ollama
13
+ - llama-cpp
14
+ license: apache-2.0
15
+ language:
16
+ - en
17
+ pipeline_tag: text-generation
18
+ ---
19
+
20
+ # Qwen3-14B STEM Q&A (GGUF)
21
+
22
+ GGUF quantized version of Qwen3-14B fine-tuned for STEM Q&A tasks. Ready for use with Ollama, llama.cpp, LM Studio, and other GGUF-compatible tools.
23
+
24
+ **Author:** Khadim Hussain
25
+
26
+ ## Available Versions
27
+
28
+ | Model | Size | Description |
29
+ |-------|------|-------------|
30
+ | [qwen3-14b-stem-qa](https://huggingface.co/khadim-hussain/qwen3-14b-stem-qa) | ~117MB | LoRA adapter only |
31
+ | [qwen3-14b-stem-qa-merged](https://huggingface.co/khadim-hussain/qwen3-14b-stem-qa-merged) | ~28GB | Full merged model (bf16) |
32
+ | **qwen3-14b-stem-qa-gguf** | 9-30GB | GGUF quantized (this repo) |
33
+
34
+ ## Files
35
+
36
+ | Filename | Quant | Size | Description |
37
+ |----------|-------|------|-------------|
38
+ | `qwen3-14b-stem-qa-f16.gguf` | F16 | 29.5GB | Full 16-bit precision, best quality |
39
+ | `qwen3-14b-stem-qa-q4_k_m.gguf` | Q4_K_M | 9GB | 4-bit quantization, good balance of size/quality |
40
+
41
+ ## Usage with Ollama
42
+
43
+ ```bash
44
+ # Download the GGUF file and Modelfile
45
+ # Then create and run:
46
+ ollama create qwen3-14b-stem -f Modelfile
47
+ ollama run qwen3-14b-stem
48
+ ```
49
+
50
+ ### Modelfile
51
+
52
+ ```
53
+ FROM ./qwen3-14b-stem-qa-q4_k_m.gguf
54
+
55
+ TEMPLATE """<|im_start|>system
56
+ You are a helpful assistant specialized in STEM subjects.<|im_end|>
57
+ <|im_start|>user
58
+ {{ .Prompt }}<|im_end|>
59
+ <|im_start|>assistant
60
+ """
61
+
62
+ PARAMETER stop "<|im_end|>"
63
+ PARAMETER temperature 0.7
64
+ PARAMETER top_p 0.9
65
+ PARAMETER num_ctx 4096
66
+ PARAMETER num_predict 2048
67
+ ```
68
+
69
+ ## Usage with llama.cpp
70
+
71
+ ```bash
72
+ ./llama-cli -m qwen3-14b-stem-qa-q4_k_m.gguf \
73
+ -p "<|im_start|>user\nWhat is DNA?<|im_end|>\n<|im_start|>assistant\n" \
74
+ -n 512
75
+ ```
76
+
77
+ ## Usage with LM Studio
78
+
79
+ 1. Download `qwen3-14b-stem-qa-q4_k_m.gguf`
80
+ 2. Import into LM Studio
81
+ 3. Use the ChatML template
82
+
83
+ ## Training Details
84
+
85
+ | Metric | Value |
86
+ |--------|-------|
87
+ | Base Model | Qwen/Qwen3-14B |
88
+ | Train Loss | 0.461 |
89
+ | Eval Loss | 0.692 |
90
+ | Training Examples | 4,260 |
91
+ | Evaluation Examples | 474 |
92
+
93
+ ## Acknowledgments
94
+
95
+ - [Qwen Team (Alibaba)](https://github.com/QwenLM/Qwen) - Qwen3-14B base model
96
+ - [llama.cpp](https://github.com/ggerganov/llama.cpp) - GGUF format and tools
97
+ - [Unsloth](https://github.com/unslothai/unsloth) - Fine-tuning framework
98
+ - [Hugging Face](https://huggingface.co) - TRL, PEFT, Transformers
99
+
100
+ ## Citation
101
+
102
+ If you use this model, please cite:
103
+
104
+ ```bibtex
105
+ @misc{hussain2026qwen3-stem,
106
+ author = {Hussain, Khadim},
107
+ title = {Qwen3-14B STEM Q&A: Fine-tuned for Science Education},
108
+ year = {2026},
109
+ publisher = {Hugging Face},
110
+ url = {https://huggingface.co/khadim-hussain/qwen3-14b-stem-qa-gguf}
111
+ }
112
+ ```
113
+
114
+ ## License
115
+
116
+ Apache 2.0 (inherited from Qwen3)