Downloads · 30 days
10
22% of all-time downloads
Dev-the-dev91/sna-ml-adapter-v2
sna-ml-adapter-v2 is a text generation model from Dev-the-dev91. 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.
A LoRA adapter fine-tuned for personalized LLM and transformer concept education using mnemonic anchors derived from the learner's own Netflix viewing history, music listening data (Spotify/Apple Music), and social me…
Downloads · 30 days
10
22% of all-time downloads
All-time downloads
45
Public
Repo size
381 MB
Likes
0
Public
Click a slice to open those files.
.safetensors369 MB · 96%
From the Hugging Face model README
A LoRA adapter fine-tuned for personalized LLM and transformer concept education using mnemonic anchors derived from the learner's own Netflix viewing history, music listening data (Spotify/Apple Music), and social media activity.
This model is part of the SNA Learning system, which builds a social network analysis graph from Netflix, music, and social data, identifies high-value "memory anchors" across all three modalities, and uses them to generate memorable explanations of LLM and transformer concepts.
This adapter supports three generation tasks:
| Task | Description |
|---|---|
| explain | Structured LLM/transformer concept explanation using personal anchors (HOOK, MOVE, BRIDGE, CONSOLIDATE format) |
| mnemonic | Memory device linking an LLM/transformer concept to a familiar anchor |
| song | Educational song/rhyme for concept retention |
Intended audience: Individual learner whose Netflix, music, and social data was used to build the anchor lexicon.
Out of scope: General-purpose question answering, factual retrieval outside the LLM/transformers domain, use with anchors from a different person's data.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", device_map="auto")
model = PeftModel.from_pretrained(base, "Dev-the-dev91/sna-ml-adapter-v2")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B")
messages = [
{"role": "system", "content": "You are an LLM/transformer tutor. Use the learner's personal anchors to explain concepts."},
{"role": "user", "content": "Explain attention mechanisms"},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
outputs = model.generate(inputs.to(model.device), max_new_tokens=1024)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
SNA_BASE_MODEL=Qwen/Qwen3-8B SNA_ADAPTER_DIR=./adapter \
uvicorn serving.agent_api:app --host 0.0.0.0 --port 8080
<think> chain-of-thought blocks| Parameter | Value |
|---|---|
| LoRA rank | 32 |
| LoRA alpha | 32 |
| Learning rate | 0.0001 |
| Epochs | 3.0 |
| Batch size | 1 |
| Gradient accumulation | 8 |
| Max sequence length | 4096 |
| Optimizer | AdamW |
| Quantization | QLoRA 4-bit NF4 (when CUDA available) |
| Parameter | Value |
|---|---|
| Learning rate | 8e-06 |
| Epochs | 1.0 |
| LoRA rank | 16 |
| Max length | 3072 |
| Parameter | Value |
|---|---|
| Learning rate | 5e-06 |
| Epochs | 1.0 |
| Num generations | 4 |
| Max completion length | 1536 |
No evaluation results available yet. Run golden eval to populate this section:
PYTHONPATH=. python training/train_lora.py --eval-golden data/eval/golden_eval.jsonl
apply_chat_template (matches inference)@misc{sna-learning-dev-the-dev91-sna-ml-adapter-v2,
title={SNA Learning: Personalized ML Education via Mnemonic Anchors},
year={2026},
howpublished={\url{https://huggingface.co/Dev-the-dev91/sna-ml-adapter-v2}},
}