File size: 3,127 Bytes
907e08b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
library_name: transformers
license: apache-2.0
pipeline_tag: text-generation
tags:
  - muse
  - chat
  - multilingual
  - text-generation
language:
  - en
  - de
  - fr
  - it
  - es
  - pt
---

# Muse-1B

Muse-1B is a compact chat language model from **Muse Research Lab**. It is built for helpful everyday conversation, writing, simple coding help, multilingual assistance, and safe general-purpose responses.

## Model Details

**Model Developer:** Muse Research Lab

**Model Architecture:** Muse-1B is an auto-regressive, Llama-style decoder-only transformer optimized for compact chat and general assistance.

| Model | Params | Input modalities | Output modalities | Context Length | GQA | Shared Embeddings | Knowledge cutoff |
| :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- |
| Muse-1B | ~1B | Multilingual text | Multilingual text and code | 8,192 tokens | Yes | Yes | Not specified |

**Supported Languages:** English, German, French, Italian, Spanish, and Portuguese.

**Status:** This is a compact chat model intended for lightweight assistant-style use.


## Capabilities

- General chat and question answering
- Writing, brainstorming, and rewriting
- Simple coding help and explanations
- Multilingual responses in English, German, French, Italian, Spanish, and Portuguese
- Safe refusal behavior for harmful requests

## Quickstart

```bash
pip install "transformers>=4.43.0" accelerate torch
```

```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_ID = "muse/Muse-1B"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are Muse-1B, a helpful chat assistant from Muse Research Lab."},
    {"role": "user", "content": "Hi, who are you?"},
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.inference_mode():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=256,
        temperature=0.7,
        top_p=0.9,
        do_sample=True,
    )

response = tokenizer.decode(output_ids[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True)
print(response)
```

## Intended Use

Muse-1B is intended for lightweight assistant-style use, including chat, drafting, summarization, simple programming support, and multilingual everyday help.

## Limitations

- May produce incorrect or incomplete answers.
- May struggle with advanced reasoning, long coding tasks, or highly specialized domains.
- Should not be used as the only source for medical, legal, financial, or safety-critical decisions.
- Applications should add their own safeguards when deployed to users.

## Safety

Muse-1B is designed to be helpful while refusing clearly harmful requests. For production use, pair the model with application-level safety checks, monitoring, and domain-specific policies.

---

<div align="center">
  <sub>Built by Muse Research Lab</sub>
</div>