Views
No views yet
1# Download the GGUF quantized version
2# Start the server
3llama-server -m email-qwen3-06b-q4_k_m.gguf --host 127.0.0.1 --port 8081 -c 2048
4
5# Generate an email
6curl http://127.0.0.1:8081/v1/chat/completions \
7 -H "Content-Type: application/json" \
8 -d '{
9 "messages": [
10 {"role": "system", "content": "You are an email writing assistant. Write a polished email body for the given request."},
11 {"role": "user", "content": "Cold outreach to the CTO at Stripe about our developer tools platform"}
12 ],
13 "max_tokens": 256,
14 "temperature": 0.7
15 }'1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("CharlieGreenman/email-qwen3-0.6b")
4tokenizer = AutoTokenizer.from_pretrained("CharlieGreenman/email-qwen3-0.6b")
5
6messages = [
7 {"role": "system", "content": "You are an email writing assistant. Write a polished email body for the given request."},
8 {"role": "user", "content": "Thank Sarah for helping with the presentation last week"},
9]
10
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12inputs = tokenizer(text, return_tensors="pt")
13outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7, do_sample=True)
14print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))