Downloads · 30 days
0
Ahmed5/AIMS_KTT_Day3
AIMS_KTT_Day3 is a text generation model from Ahmed5. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This directory holds merged full-precision (bf16) weights after a QLoRA fine-tune run on Modal, produced by scripts/trainqloramodal.py. The base model is TinyLlama/TinyLlama-1.1B-Chat-v1.0 unless you overrode --base-m…
Downloads · 30 days
0
Access
Public
Updated Apr 24, 2026
Parameters
1.1B
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 100%
From the Hugging Face model README
This directory holds merged full-precision (bf16) weights after a QLoRA
fine-tune run on Modal, produced by
scripts/train_qlora_modal.py. The base model
is TinyLlama/TinyLlama-1.1B-Chat-v1.0 unless you overrode --base-model.
Training on Modal uses the standard QLoRA stack:
prepare_model_for_kbit_training then LoRA (PEFT) on attention projections
q_proj, k_proj, v_proj, o_proj (defaults: r=8, alpha=16, dropout 0.05).config.json, tokenizer files, and weight
shards if present).So: yes — the Modal job is QLoRA, not full fine-tuning of all base weights.
Instruction rows are built inside the training image from the project curriculum
via build_instruction_set in scripts/train_qlora.py:
synthetic tutor-style turns in English, French, and Kinyarwanda derived from
the numeracy items (on the order of ~684 JSONL records for the default seed).
Run on Modal (example):
modal run scripts/train_qlora_modal.py
Pull the merged checkpoint from the math-tutor-checkpoints volume:
modal volume get math-tutor-checkpoints /math_tutor_merged ./checkpoints/math_tutor_merged
If your local layout matches this repo, the merged weights and tokenizer
should end up under checkpoints/ (or checkpoints/math_tutor_merged/ —
copy or symlink so this README.md sits next to the Hub upload).
Replace paths with your actual folder or Hub repo id.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
path = "." # or "your-username/your-repo"
tok = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
path,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
Either pass --push-to your-username/repo-name with HF_TOKEN set when running
Modal, or upload this folder after training:
huggingface-cli upload your-username/your-repo . --repo-type model
Use this file as the repo README.md on the Hub (same content is valid as
the model card).
llama.cpp convert/quantize) if you need that format.If you use this checkpoint, cite the TinyLlama base model and link your Hub repo or this project’s repository as appropriate.