qwen3-1.7b-math-sft

82
1.7B
license:apache-2.0
by
winglian
Language Model
OTHER
1.7B params
New
82 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
4GB+ RAM
Mobile
Laptop
Server
Quick Summary

This model is a fine-tuned version of Qwen/Qwen3-1.

Device Compatibility

Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
2GB+ RAM

Code Examples

yaml
base_model: Qwen/Qwen3-1.7B-Base

plugins:
  - axolotl.integrations.liger.LigerPlugin

liger_rms_norm: true
liger_glu_activation: true

  # torch_compile: true

strict: false

dataloader_prefetch_factor: 1
dataloader_num_workers: 2
dataloader_pin_memory: true

gc_steps: -1  # gc at the end of each epoch

chat_template: qwen3
datasets:
  - path: winglian/OpenThoughts-114k-math-correct
    type: chat_template
    split: train
    split_thinking: true
    eot_tokens:
      - "<|im_end|>"

dataset_prepared_path: last_run_prepared
val_set_size: 0.0
output_dir: ./outputs/out-1.7b-sft

sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true

wandb_project: kd-4b-math
wandb_entity: axolotl-ai
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 1
micro_batch_size: 4
num_epochs: 2
optimizer: adamw_torch_fused
adam_beta2: 0.999
lr_scheduler: rex
learning_rate: 3e-5
max_grad_norm: 0.2
save_safetensors: true

bf16: true
tf32: true

gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
logging_steps: 1
flash_attention: true

warmup_steps: 100
evals_per_epoch: 4
saves_per_epoch: 2
debug:
weight_decay: 0.0
special_tokens:
  eos_token: <|im_end|>
deepspeed: deepspeed_configs/zero2_torch_compile.json
yaml
base_model: Qwen/Qwen3-1.7B-Base

plugins:
  - axolotl.integrations.liger.LigerPlugin

liger_rms_norm: true
liger_glu_activation: true

  # torch_compile: true

strict: false

dataloader_prefetch_factor: 1
dataloader_num_workers: 2
dataloader_pin_memory: true

gc_steps: -1  # gc at the end of each epoch

chat_template: qwen3
datasets:
  - path: winglian/OpenThoughts-114k-math-correct
    type: chat_template
    split: train
    split_thinking: true
    eot_tokens:
      - "<|im_end|>"

dataset_prepared_path: last_run_prepared
val_set_size: 0.0
output_dir: ./outputs/out-1.7b-sft

sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true

wandb_project: kd-4b-math
wandb_entity: axolotl-ai
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 1
micro_batch_size: 4
num_epochs: 2
optimizer: adamw_torch_fused
adam_beta2: 0.999
lr_scheduler: rex
learning_rate: 3e-5
max_grad_norm: 0.2
save_safetensors: true

bf16: true
tf32: true

gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
logging_steps: 1
flash_attention: true

warmup_steps: 100
evals_per_epoch: 4
saves_per_epoch: 2
debug:
weight_decay: 0.0
special_tokens:
  eos_token: <|im_end|>
deepspeed: deepspeed_configs/zero2_torch_compile.json
yaml
base_model: Qwen/Qwen3-1.7B-Base

plugins:
  - axolotl.integrations.liger.LigerPlugin

liger_rms_norm: true
liger_glu_activation: true

  # torch_compile: true

strict: false

dataloader_prefetch_factor: 1
dataloader_num_workers: 2
dataloader_pin_memory: true

gc_steps: -1  # gc at the end of each epoch

chat_template: qwen3
datasets:
  - path: winglian/OpenThoughts-114k-math-correct
    type: chat_template
    split: train
    split_thinking: true
    eot_tokens:
      - "<|im_end|>"

dataset_prepared_path: last_run_prepared
val_set_size: 0.0
output_dir: ./outputs/out-1.7b-sft

sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true

wandb_project: kd-4b-math
wandb_entity: axolotl-ai
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 1
micro_batch_size: 4
num_epochs: 2
optimizer: adamw_torch_fused
adam_beta2: 0.999
lr_scheduler: rex
learning_rate: 3e-5
max_grad_norm: 0.2
save_safetensors: true

bf16: true
tf32: true

gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
logging_steps: 1
flash_attention: true

warmup_steps: 100
evals_per_epoch: 4
saves_per_epoch: 2
debug:
weight_decay: 0.0
special_tokens:
  eos_token: <|im_end|>
deepspeed: deepspeed_configs/zero2_torch_compile.json
yaml
base_model: Qwen/Qwen3-1.7B-Base

plugins:
  - axolotl.integrations.liger.LigerPlugin

liger_rms_norm: true
liger_glu_activation: true

  # torch_compile: true

strict: false

dataloader_prefetch_factor: 1
dataloader_num_workers: 2
dataloader_pin_memory: true

gc_steps: -1  # gc at the end of each epoch

chat_template: qwen3
datasets:
  - path: winglian/OpenThoughts-114k-math-correct
    type: chat_template
    split: train
    split_thinking: true
    eot_tokens:
      - "<|im_end|>"

dataset_prepared_path: last_run_prepared
val_set_size: 0.0
output_dir: ./outputs/out-1.7b-sft

sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true

wandb_project: kd-4b-math
wandb_entity: axolotl-ai
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 1
micro_batch_size: 4
num_epochs: 2
optimizer: adamw_torch_fused
adam_beta2: 0.999
lr_scheduler: rex
learning_rate: 3e-5
max_grad_norm: 0.2
save_safetensors: true

bf16: true
tf32: true

gradient_checkpointing: true
gradient_checkpointing_kwargs:
  use_reentrant: false
logging_steps: 1
flash_attention: true

warmup_steps: 100
evals_per_epoch: 4
saves_per_epoch: 2
debug:
weight_decay: 0.0
special_tokens:
  eos_token: <|im_end|>
deepspeed: deepspeed_configs/zero2_torch_compile.json

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.