Views
No views yet
⚠️ Fine-tuning improves how well instructions are followed — it does not remove the need for prompting entirely.
1from unsloth import FastLanguageModel
2
3model_name = "khemn/poetic-assistant-phi3"
4
5model, tokenizer = FastLanguageModel.from_pretrained(
6 model_name=model_name,
7 max_seq_length=2048,
8 load_in_4bit=True
9)
10
11FastLanguageModel.for_inference(model)| Parameter | Recommended Value | Reason |
|---|---|---|
temperature | 0.7–0.9 | Creative but coherent |
do_sample | True | Enables poetic variation |
top_p | 0.9 | Prevents nonsense |
max_new_tokens | 128–256 | Enough space for poems |