alt.freeweights.smollm / qwen3-1.7b-gsm8k-sft
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

qwen3-1.7b-gsm8k-sft

Date: 2026-11-14Commit: b0a537bSigned: 2DC28CC7B26A283B ✓

Text generation model with 1.7B parameters. Gguf and safetensors weights, 8.74 GB in all. Published by HuggingFaceTB under Apache-2.0.

1.7B params8.74GBqwen3-1.7b-gsm8k-sftgguf safetensorspermissive
FactsParams1.7BSize8.74 GBFormatsgguf, safetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/qwen3-1.7b-gsm8k-sft
# manifest sha256 7c838bd8b836… · 8.74 GB · 20 files
$ fw verify ./qwen3-1.7b-gsm8k-sft HuggingFaceTB/qwen3-1.7b-gsm8k-sft
From sourceHosted (signed)HuggingFaceTB/qwen3-1.7b-gsm8k-sftLast check: 2026-11-14 21:11 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Qwen3-1.7B.

Works with

Overview

Size
8.74 GB
Weights
1.83 GB (smallest of 2 GGUF variants)
Parameters
1.7B
Formats
gguf, safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
20, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: Qwen/Qwen3-1.7B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:11 UTCpassed

Model card

From the publisher at commit b0a537b. Shown as plain text with links; images open at the publisher.

Qwen3-1.7B Fine-tuned for GSM8K Math Reasoning#

This model is a fine-tuned version of Qwen/Qwen3-1.7B optimized for mathematical reasoning on the GSM8K benchmark.

Performance#

BenchmarkAccuracyNotes
GSM8K77.2%Grade school math (1,319 test problems)
MATH-50055.2%Competition math (500 test problems)
Baseline GSM8K20%Original Qwen3-1.7B
MATH-500 Breakdown by Difficulty Level#
LevelAccuracy
Level 1 (Easiest)86.0%
Level 268.9%
Level 364.8%
Level 454.7%
Level 5 (Hardest)29.1%
MATH-500 Breakdown by Subject#
SubjectAccuracy
Algebra71.8%
Prealgebra68.3%
Number Theory61.3%
Counting & Probability55.3%
Geometry43.9%
Precalculus41.1%
Intermediate Algebra32.0%
Baseline Comparison#
ModelGSM8KMATH-500Notes
This model (SFT)77.2%55.2%Optimized for GSM8K
Qwen3-1.7B (base)~20%62.0%Pre-training only

Note: The fine-tuned model shows significant improvement on GSM8K (+57pp) but slightly lower performance on MATH-500 compared to the base model. This is expected as the training focused on GSM8K-style problems.

GGUF Quantized Versions#

For deployment with llama.cpp, Ollama, or other GGUF-compatible runtimes:

FileSizeDescription
qwen3-1.7b-gsm8k-q8_0.gguf1.8 GB8-bit quantized (recommended)
qwen3-1.7b-gsm8k-f16.gguf3.3 GBFull FP16 precision
Usage with Ollama#
# Download and run
ollama run hf.co/HuggingFaceTB/qwen3-1.7b-gsm8k-sft:q8_0
Usage with llama.cpp#
# Download the GGUF file
huggingface-cli download HuggingFaceTB/qwen3-1.7b-gsm8k-sft qwen3-1.7b-gsm8k-q8_0.gguf

# Run inference
./llama-cli -m qwen3-1.7b-gsm8k-q8_0.gguf -p "Solve: If a train travels 120 miles in 2 hours, what is its average speed?"

Training Details#

Dataset#
  • Size: 247,467 examples
  • Sources:
    • GSM8K train set (7,473 examples)
    • MetaMathQA GSM-related examples (239,994 examples)
  • Format: Conversational messages with <think>...</think> chain-of-thought reasoning
Training Configuration#
  • Stage 1 (2 epochs): lr=2e-5, loss 0.30 → 0.17
  • Stage 2 (1 epoch): lr=5e-6, loss 0.17 → 0.167
  • Batch size: 8 per device, gradient accumulation 4
  • Hardware: NVIDIA H100 80GB GPU
  • Total training time: ~7 hours
Hyperparameters#
SFTConfig(
    num_train_epochs=2,  # Stage 1
    per_device_train_batch_size=8,
    gradient_accumulation_steps=4,
    learning_rate=2e-5,  # 5e-6 for Stage 2
    lr_scheduler_type="cosine",
    warmup_ratio=0.03,
    weight_decay=0.01,
    max_length=1024,
    packing=True,
    bf16=True,
    gradient_checkpointing=True,
)

Usage#

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "HuggingFaceTB/qwen3-1.7b-gsm8k-sft",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/qwen3-1.7b-gsm8k-sft")

# For math problems, the model uses chain-of-thought reasoning
messages = [
    {"role": "user", "content": "Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?"}
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Evaluation#

GSM8K#
  • Accuracy: 77.2% ± 1.2% (standard error)
  • Test set: 1,319 grade school math word problems
MATH-500#
  • Accuracy: 55.2%
  • Test set: 500 competition-level math problems
  • Best performance on Algebra (71.8%) and Prealgebra (68.3%)
  • Model uses chain-of-thought reasoning enclosed in <think>...</think> tags

Key Learnings#

  1. Chain-of-thought format is crucial - The <think>...</think> reasoning format significantly improves math performance
  2. Large diverse dataset works better - MetaMathQA (240K examples) outperforms small task-specific data
  3. Two-stage training - Starting with higher LR (2e-5) then refining with lower LR (5e-6) works well
  4. Diminishing returns after ~3 epochs - Additional fine-tuning showed minimal improvement
  5. Transfer to harder problems - GSM8K training also improves MATH-500 performance, especially on algebra

Training Scripts#

Training scripts are available in the scripts/ directory:

  • train_improved.py - Main training script (Stage 1)
  • train_continued.py - Continued training script (Stage 2)
  • evaluate.py - GSM8K evaluation script
  • evaluate_math500.py - MATH-500 evaluation script
  • prepare_combined_data.py - Data preparation script

Citation#

If you use this model, please cite:

@misc{qwen3-gsm8k-sft,
  title={Qwen3-1.7B Fine-tuned for GSM8K},
  author={HuggingFaceTB},
  year={2026},
  publisher={Hugging Face},
  url={https://huggingface.co/HuggingFaceTB/qwen3-1.7b-gsm8k-sft}
}

License#

This model inherits the license from the base model Qwen/Qwen3-1.7B (Apache 2.0).

Files

20 files · 8.74 GBWeights 1.83 GB (smallest of 2 GGUF variants). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.70 KBf2c2a6a092355909080546470c6d6275d22f9346491ae09510d82c08e43a7588
README.md6.52 KB945310e79e48ac9a8c5b114c7004f5f7390395194953cd731a458526b3ae9b49
added_tokens.json707 Bc0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680
chat_template.jinja4.17 KBa55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8
config.json1.36 KBa4a451865e8d45a519133031f19cda7d347813159fde1756d63e2beaf67f2288
generation_config.json188 B3b101cd89b140b757d0bca469e75570e75789a2423ada90a33ec17707dfacf08
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model.safetensors3.44 GB1febbe96ad1e0ad1ac19919d0eb5362bb013b0493063de241d1ecdd7b67bb291
qwen3-1.7b-gsm8k-f16.gguf3.45 GBcd6b433c2c52329f688810ded7e66d38c5313f8ca93ca4ec0e45fc9a63b9a79b
qwen3-1.7b-gsm8k-q8_0.gguf1.83 GB9508fd895d10cb39fd4799d709c3599efeb00a61d4afbc05ecbfa34b02998e1a
scripts/evaluate.py4.08 KB02b97287d5cd2179dc26c4328a35386a5a2908919a360fd97418b32003b15529
scripts/evaluate_math500.py5.18 KBc02c40eb82e2633b81b7ac139714389dc275f0e7799742264a1d70753ebdec06
scripts/prepare_combined_data.py5.05 KB210e66871f665a44094cfc3829394d43faec0e25ceefb52d1e685870a105ab0a
scripts/train_continued.py2.89 KB5dbb3cf3da372b12537b98aa9fe49fce15e8368178a67f0ae95654f5e2c2c9f5
scripts/train_improved.py3.23 KB8c8b7281b3289d3ca55bbdf78c3d566abf1097658075678f677d16d99aa49dc0
special_tokens_map.json613 B76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json11.4 MBaeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json5.40 KB443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0
training_args.bin6.29 KB4cc4183a399e46771d11513377493de112e1c85dfa95d53dc6b122e5befe0449
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b0a537b739 pinned now manifest updated, same commit2026-11-14 21:11 UTC20 files · 8.74 GB
b0a537b7392026-11-14 21:11 UTC20 files · 8.74 GB

Use it

$ fw get HuggingFaceTB/qwen3-1.7b-gsm8k-sft
# manifest sha256 7c838bd8b836… · 8.74 GB · 20 files
$ fw verify ./qwen3-1.7b-gsm8k-sft HuggingFaceTB/qwen3-1.7b-gsm8k-sft
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/qwen3-1.7b-gsm8k-sft.json --dir ./qwen3-1.7b-gsm8k-sft $ python3 fw.py verify ./qwen3-1.7b-gsm8k-sft ./HuggingFaceTB__qwen3-1.7b-gsm8k-sft.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/qwen3-1.7b-gsm8k-sft --revision b0a537b73930e835e38b349bba1581202022a945 --local-dir ./qwen3-1.7b-gsm8k-sft
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("HuggingFaceTB/qwen3-1.7b-gsm8k-sft", revision="b0a537b73930e835e38b349bba1581202022a945") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/qwen3-1.7b-gsm8k-sft", revision="b0a537b73930e835e38b349bba1581202022a945", device_map="auto")
llama.cppDownload one GGUF variant (qwen3-1.7b-gsm8k-q8_0, 1.83 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/qwen3-1.7b-gsm8k-sft --include "qwen3-1.7b-gsm8k-q8_0*" --local-dir ./qwen3-1.7b-gsm8k-sft $ llama-server -m ./qwen3-1.7b-gsm8k-sft/qwen3-1.7b-gsm8k-q8_0.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./qwen3-1.7b-gsm8k-sft/qwen3-1.7b-gsm8k-q8_0.gguf\n' > Modelfile $ ollama create qwen3-1.7b-gsm8k-sft -f Modelfile
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/qwen3-1.7b-gsm8k-sft --revision b0a537b73930e835e38b349bba1581202022a945

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
945310e79e48ac9a8c5b114c7004f5f7390395194953cd731a458526b3ae9b49
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: qwen3-1.7b-gsm8k-sftDate: 2026-11-14Commit: b0a537bSigned: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/qwen3-1.7b-gsm8k-sft
Pinned commit
b0a537b73930e835e38b349bba1581202022a945
Manifest
qwen3-1.7b-gsm8k-sft.json · .minisig
Manifest sha256
7c838bd8b836444fd2c6f32bbcbf455514f35c3ecece23170b7f1cfa1e146e83
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/qwen3-1.7b-gsm8k-sft.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/qwen3-1.7b-gsm8k-sft.json.minisig $ minisign -Vm qwen3-1.7b-gsm8k-sft.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3-1.7B · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/qwen3-1.7b-gsm8k-sft
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. qwen3-1.7b-gsm8k-sft.json. Provenance. Takedown history: none.
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit