Views
No views yet

| Metric | Teacher (DeepSeek V3) | Base Model | Fine-tuned |
|---|---|---|---|
| Exact Match | 60% | 48% | 72% |
| LLM-as-Judge | 90% | 75% | 87% |
| ROUGE-L | 92% | 83% | 94% |
| BLEU | 85% | 70% | 89% |
| Semantic Similarity | 96% | 93% | 97% |

1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "hybridaione/LFM2.5-1.2B-Text2SQL",
6 trust_remote_code=True,
7 torch_dtype=torch.bfloat16,
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained("furukama/LFM2.5-1.2B-Text2SQL", trust_remote_code=True)
11
12# Example query
13prompt = '''CREATE TABLE employees (id INT, name VARCHAR, salary DECIMAL);
14
15Question: What are the names of employees earning more than 50000?'''
16
17messages = [{"role": "user", "content": prompt}]
18inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
19outputs = model.generate(inputs, max_new_tokens=256)
20print(tokenizer.decode(outputs[0], skip_special_tokens=True))