Views
No views yet
1from nanosota_moe import load_nanosota
2model, tokenizer = load_nanosota("oscarz511/NanoSOTA-v2-General")
3
4prompt = "If it takes 3 hours to dry 3 shirts, how long for 30 shirts?"
5inputs = tokenizer.apply_chat_template([
6 {"role": "system", "content": "You are NanoSOTA. Think step-by-step."},
7 {"role": "user", "content": prompt}
8], return_tensors="pt", add_generation_prompt=True).to("cuda")
9
10out = model.generate(**inputs, max_new_tokens=256)
11print(tokenizer.decode(out[0]))