HuggingFaceFW/fineweb-edu
Viewer • Updated • 3.5B • 397k • 1.28k
Mnemosyne-64M-Instruct is the conversationally aligned instruction model built on the Hierarchical Chunk Attention (HCA) architecture.
It was pre-trained from scratch on 1.28 Billion tokens of educational text and subsequently aligned on 25,000 multi-turn conversations from UltraChat-200k.
The model expects standard instruction framing:
<|user|>
{user_prompt}
<|assistant|>
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "BIBLIOKLEPT/Mnemosyne-64M-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="cuda",
trust_remote_code=True
)
prompt = "<|user|>\nGive me three practical tips for eating healthy.\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=150,
do_sample=True,
temperature=0.6,
top_k=40,
repetition_penalty=1.15
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Base model
BIBLIOKLEPT/Mnemosyne-64M