Run this model with HF Jobs

Run aijadugar/qwen2.5-0.5b-sql-qlora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/aijadugar/qwen2.5-0.5b-sql-qlora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/aijadugar/qwen2.5-0.5b-sql-qlora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Qwen2.5-0.5B-Instruct fine-tuned with QLoRA (Text-to-SQL)

This model is Qwen/Qwen2.5-0.5B-Instruct fine-tuned on a small slice of b-mc2/sql-create-context using QLoRA: a 4-bit (NF4) quantized frozen base model via bitsandbytes, with a LoRA adapter (rank=8, alpha=16) trained on top via peft, then merged back into full precision.

Training details

  • Base model: Qwen/Qwen2.5-0.5B-Instruct, loaded in 4-bit NF4 with double quantization
  • Method: QLoRA (rank=8, alpha=16), applied to q_proj, k_proj, v_proj, o_proj
  • Dataset: 250 examples from b-mc2/sql-create-context
  • Hardware: Kaggle, 1x Tesla T4

How to use

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("YOUR_USERNAME/YOUR_REPO_NAME")
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/YOUR_REPO_NAME")

This model is a learning exercise, not a production system -- expect rough edges.

Downloads last month
-
Safetensors
Model size
0.5B params
Tensor type
F32
路
BF16
路
U8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for aijadugar/qwen2.5-0.5b-sql-qlora

Adapter
(1,135)
this model