Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

Pipeline

markdown

Qwen/Qwen3-0.6B (base)
↓ SFT with LoRA
qwen3-0.6b-sft-dolly (this model)
↓ DPO
qwen3-0.6b-dpo-ultrafeedback

LoRA Configuration

ParameterValue
Rank (r)32
Alpha64
Target Modulesq_proj, k_proj, v_proj, o_proj
Dropout0.1
Learning Rate3e-4
Epochs2
Batch Size2 x 4 accumulation
Optimizeradamw_8bit
Quantization4-bit NF4

Dataset

  • Name: databricks/databricks-dolly-15k
  • Subset: 3,000 samples (seed=42)
  • Format: Instruction + Context → Response

Results

StageBLEUBERTScore F1
Baseline (no tuning)3.700.7675
This Model (SFT)10.220.8149

How to Use

python

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load base + adapter
tokenizer = AutoTokenizer.from_pretrained(
"Shaheer05/qwen3-0.6b-sft-dolly",
trust_remote_code=True
)
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-0.6B",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
model = PeftModel.from_pretrained(
base,
"Shaheer05/qwen3-0.6b-sft-dolly"
)
# Inference
messages = [{"role": "user", "content": "What is machine learning?"}]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=200, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))

Training Platform

  • Google Colab (Free Tier) — NVIDIA T4 GPU

Model provider

Shaheer05

Model tree

Base

Qwen/Qwen3-0.6B

Adapter

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today