Downloads · 30 days
22
26% of all-time downloads
mr-dee/qwen3-ascii-tui-lora
qwen3-ascii-tui-lora is a text generation model from mr-dee. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for Qwen/Qwen3-0.6B specialized for terminal-first educational content: - high-quality ASCII diagrams - TUI-style process maps - concise conceptual explanations paired with diagram blocks
Downloads · 30 days
22
26% of all-time downloads
All-time downloads
84
Public
Repo size
256 MB
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 67%
From the Hugging Face model README
LoRA adapter for Qwen/Qwen3-0.6B specialized for terminal-first educational content:
mr-deeQwen/Qwen3-0.6Bmr-dee/qwen3-ascii-tui-loraDirect use:
Downstream use:
Out-of-scope:
Dataset characteristics:
Each row includes:
topicinstructionresponse (multiline explanation + ASCII/TUI diagram)diagram_style, difficulty, and tagsHardware:
torchrun --nproc_per_node=4)LoRA config:
r=32640.05q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projOptimization:
2e-4From trainer_state.json and train_metrics.json:
4.12497 -> 0.108132.06111 -> 0.11857checkpoint-4588.83s0.69445import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
BASE = "Qwen/Qwen3-0.6B"
ADAPTER = "mr-dee/qwen3-ascii-tui-lora"
tokenizer = AutoTokenizer.from_pretrained(BASE, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
BASE,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, ADAPTER)
messages = [
{"role": "system", "content": "You create terminal-friendly educational ASCII/TUI diagrams."},
{"role": "user", "content": "Explain the double-slit experiment with a compact ASCII diagram."},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=600, temperature=0.2, top_p=0.9)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
vllm serve Qwen/Qwen3-0.6B \
--enable-lora \
--lora-modules ascii=mr-dee/qwen3-ascii-tui-lora \
--tensor-parallel-size 2 \
--max-model-len 2048
Query example:
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "ascii",
"messages": [
{"role":"user","content":"Teach gravity using an ASCII flow diagram and 3 takeaways."}
],
"max_tokens": 500,
"temperature": 0.2
}'
Important:
prompt_tokens + max_tokens <= max_model_len@misc{qwen3_ascii_tui_lora_2026,
title = {qwen3-ascii-tui-lora},
author = {mr-dee},
year = {2026},
url = {https://huggingface.co/mr-dee/qwen3-ascii-tui-lora}
}