Views
No views yet
<think> tags1# Create Modelfile
2cat > Modelfile << 'EOF'
3FROM ./Qwen3-30B-A3B-Thinking-2507-GEO_q4_k_m.gguf
4TEMPLATE """{{ .System }}
5
6{{ .Prompt }}"""
7PARAMETER temperature 0.7
8PARAMETER top_p 0.9
9EOF
10
11ollama create qwen-geo -f Modelfile
12ollama run qwen-geo1./llama-cli -m Qwen3-30B-A3B-Thinking-2507-GEO_q4_k_m.gguf \
2 --temp 0.7 \
3 --top-p 0.9 \
4 -p "Your prompt here"1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "ryanfortin/Qwen3-30B-A3B-Thinking-2507-GEO",
5 device_map="auto",
6 torch_dtype="auto"
7)
8tokenizer = AutoTokenizer.from_pretrained("ryanfortin/Qwen3-30B-A3B-Thinking-2507-GEO")
9
10messages = [
11 {"role": "user", "content": "Explain GEO optimization strategies"}
12]
13
14text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
15inputs = tokenizer([text], return_tensors="pt").to(model.device)
16
17outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7)
18print(tokenizer.decode(outputs[0], skip_special_tokens=True))<think> tags1# LoRA Configuration
2lora_r = 16
3lora_alpha = 16
4target_modules = ["q_proj", "k_proj", "v_proj", "o_proj",
5 "gate_proj", "up_proj", "down_proj"]
6
7# Training Parameters
8batch_size = 1
9gradient_accumulation_steps = 16
10effective_batch_size = 16
11learning_rate = 2e-5
12epochs = 3
13context_length = 2048
14warmup_steps = 100
15
16# Hardware
17gpu = "RunPod A40 (48GB)"
18training_time = "91 hours"1@misc{qwen3-geo-2025,
2 author = {Ryan Fortin},
3 title = {Qwen3-30B Fine-tuned for GEO and Conversation Optimization},
4 year = {2025},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/ryanfortin/Qwen3-30B-A3B-Thinking-2507-GEO}
7}