Run this model with HF Jobs
Run haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned 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 and TRL to fine-tune https://huggingface.co/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned. 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/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned") model = AutoModelForCausalLM.from_pretrained("haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned
- SGLang
How to use haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned with Docker Model Runner:
docker model run hf.co/haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned
haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned
Qwen 0.6B LoRA fine-tuned for Python expert tasks
Training Notebook (Google Colab)
You can reproduce the fine-tuning process or adapt it for your own dataset using the Colab notebook:
๐ Open in Google Colab
Model Details
- Model type: Qwen 0.6B LoRA
- Base model: Qwen/Qwen3-0.6B
- Fine-tuned by: @haydarkadioglu
- Language(s): English, Python
Intended Use
- Primary use case: Code generation, Python expert help
- Not suitable for: General conversation, non-Python coding tasks
Training Details
- Dataset: flytech/python-codes-25k
- Steps / Epochs: 3 epochs, batch size 8
- Hardware: A100 GPU / Colab T4
- Fine-tuning method: LoRA / PEFT
Evaluation
| Step | Training Loss |
|---|---|
| 100 | 1.8288 |
| 500 | 1.7133 |
| 1000 | 1.5976 |
| 1500 | 1.6438 |
| 2000 | 1.5797 |
| 2500 | 1.5619 |
| 3000 | 1.6235 |
| Final (3102) | 1.6443 |
Final Results: Training loss (avg): 1.64 Steps/sec: 0.645 Samples/sec: 10.3 FLOPs: 5.31e15
Limitations
- The model might produce incorrect or insecure code.
- Not guaranteed to follow PEP8.
- May hallucinate libraries or functions.
Example Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "haydarkadioglu/Qwen3-0.6B-lora-python-expert-fine-tuned"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Write a Python function, this function should return prime numbers between 0-100"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
- Downloads last month
- 578