--- language: - en license: apache-2.0 library_name: pytorch pipeline_tag: text-generation pretty_name: Muse2-230M tags: - text-generation - conversational - hybrid-attention - convolution - grouped-query-attention - edge - on-device - structured-output - json - muse2 task_categories: - text-generation - conversational size_categories: - 100M + "}, ] ids = apply_chat_template(tk, messages) # ends at the assistant header out = model.generate(torch.tensor([ids]), max_new_tokens=256, temperature=0.2, top_k=50, eos_token_id=4) # <|im_end|> print(tk.decode(out[0][len(ids):].tolist(), skip_special_tokens=True)) ``` Interactive chat on a single cloud T4: ```bash modal run modal_app.py::chat ``` Local CPU chat: `python scripts/chat.py --model . --interactive` ## Responsibility & Safety Muse2 is a research artifact released without safety fine-tuning, red-teaming, or content classification. It can produce inaccurate, biased, repetitive, or otherwise objectionable output, and it **hallucinates facts readily at this model scale**. Developers are solely responsible for deployment decisions and should add appropriate input/output safeguards for any application, and should not rely on the model for correctness. ## Ethical Considerations and Limitations **Values:** Muse2 is intended to make small-scale, from-scratch language-model development accessible — every component (tokenizer, architecture, inference stack) is open and reproducible. **Testing:** Safety and capability testing to date is limited to qualitative inspection. It does not cover, nor could it cover, all scenarios. Before any deployment, developers should perform testing appropriate to their use case. Upstream dataset licenses and attribution requirements continue to apply to derivative uses.