Views
No views yet
| Model | Dataset | #Params | #Tokens | Checkpoint | Demo |
| Monet-VD | FineWeb-Edu | 850M | 100BT | monet-vd-850M-100BT-hf | |
| 1.4B | 100BT | monet-vd-1.4B-100BT-hf | Viewer | ||
| 4.1B | 100BT | monet-vd-4.1B-100BT-hf | |||
| StarCoderData | 1.4B | 100BT | codemonet-vd-1.4B-100BT-hf | Viewer | |
| Monet-HD | FineWeb-Edu | 850M | 100BT | monet-hd-850M-100BT-hf | |
| 1.4B | 100BT | monet-hd-1.4B-100BT-hf | |||
| 4.1B | 100BT | monet-hd-4.1B-100BT-hf |
| Model | Purpose | Recipe | #Params | Checkpoint |
| Monet-VD | Chat Completion | SmolLM | 1.4B | monet-vd-1.4B-100BT-chat-hf |
| Vision-Language Model | LLaVA | 1.6B | visionmonet-vd-1.4B-100BT-hf |
| Model | MMLU | ARC | WG | PIQA | SIQA | OBQA | HS | CSQA | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| 0-shot | |||||||||
| Monet-HD 850M | 0.320 | 0.460 | 0.506 | 0.699 | 0.416 | 0.364 | 0.465 | 0.337 | 0.446 |
| Monet-VD 850M | 0.328 | 0.456 | 0.530 | 0.708 | 0.417 | 0.356 | 0.488 | 0.343 | 0.453 |
| Monet-HD 1.4B | 0.338 | 0.471 | 0.538 | 0.714 | 0.418 | 0.382 | 0.501 | 0.339 | 0.463 |
| Monet-VD 1.4B | 0.352 | 0.495 | 0.522 | 0.727 | 0.423 | 0.418 | 0.529 | 0.363 | 0.478 |
| Monet-HD 4.1B | 0.375 | 0.558 | 0.560 | 0.741 | 0.427 | 0.414 | 0.571 | 0.379 | 0.503 |
| Monet-VD 4.1B | 0.380 | 0.547 | 0.557 | 0.751 | 0.437 | 0.424 | 0.604 | 0.389 | 0.511 |
| 5-shot | |||||||||
| Monet-HD 850M | 0.332 | 0.537 | 0.510 | 0.697 | 0.409 | 0.346 | 0.479 | 0.420 | 0.466 |
| Monet-VD 850M | 0.341 | 0.548 | 0.520 | 0.709 | 0.437 | 0.368 | 0.504 | 0.454 | 0.485 |
| Monet-HD 1.4B | 0.352 | 0.544 | 0.530 | 0.720 | 0.432 | 0.360 | 0.518 | 0.441 | 0.487 |
| Monet-VD 1.4B | 0.360 | 0.547 | 0.526 | 0.730 | 0.441 | 0.422 | 0.551 | 0.501 | 0.510 |
| Monet-HD 4.1B | 0.385 | 0.603 | 0.545 | 0.742 | 0.463 | 0.412 | 0.588 | 0.545 | 0.535 |
| Monet-VD 4.1B | 0.398 | 0.625 | 0.564 | 0.761 | 0.470 | 0.438 | 0.619 | 0.525 | 0.550 |
| Masking Threshold | Masking Ratio | Exp. Max. Toxicity | Toxicity Prob. | Avg. Perf. | ||
|---|---|---|---|---|---|---|
| Toxic | Non-Toxic | Toxic | Non-Toxic | |||
| – | – | 0.795 | 0.269 | 0.926 | 0.08 | 0.478 |
| 0.2 | 1.0% | 0.767 | 0.268 | 0.909 | 0.07 | 0.479 |
| 0.1 | 4.1% | 0.657 | 0.270 | 0.768 | 0.08 | 0.478 |
| 0.05 | 14.4% | 0.552 | 0.256 | 0.564 | 0.05 | 0.467 |
| Masking Threshold | Masking Ratio | RoBERTa Score | Avg. Perf. | |
|---|---|---|---|---|
| Hate | Neutral | |||
| – | – | 0.642 | 0.035 | 0.478 |
| 0.2 | 1.4% | 0.643 | 0.033 | 0.478 |
| 0.1 | 5.4% | 0.504 | 0.028 | 0.473 |
| 0.05 | 15.0% | 0.430 | 0.027 | 0.455 |
1from transformers import pipeline
2
3model_name = "MonetLLM/monet-vd-1.4B-100BT-hf"
4pipe = pipeline(
5 "text-generation",
6 model_name,
7 tokenizer=AutoTokenizer.from_pretrained(model_name),
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True,
11)
12print(pipe("The key to life is", max_new_tokens=20, do_sample=True)[0]["generated_text"])1from transformers import pipeline
2
3model_name = "MonetLLM/codemonet-vd-1.4B-100BT-hf"
4pipe = pipeline(
5 "text-generation",
6 model_name,
7 tokenizer=AutoTokenizer.from_pretrained(model_name),
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True,
11)
12
13text = '''
14def print_len(x: str):
15 """For a given string x, print the length of x."""
16'''
17print(pipe(text, max_new_tokens=10)[0]["generated_text"].split("\n\n")[0])1from transformers import pipeline
2
3model_name = "MonetLLM/codemonet-vd-1.4B-100BT-chat-hf"
4pipe = pipeline(
5 "text-generation",
6 model_name,
7 tokenizer=AutoTokenizer.from_pretrained(model_name),
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True,
11)
12
13text = tokenizer.apply_chat_template(
14 [{"role": "user", "content": "Hi! How are you?"}],
15 add_generation_prompt=True,
16 tokenize=False,
17)
18print(pipe(text, max_new_tokens=30, do_sample=True)[0]["generated_text"])1from vllm import LLM, ModelRegistry, SamplingParams
2from modeling_monet_vllm import MonetForCausalLM
3
4# Register Monet architecture with vLLM
5ModelRegistry.register_model("MonetForCausalLM", MonetForCausalLM)
6
7model = LLM(
8 "MonetLLM/monet-vd-1.4B-100BT-hf",
9 trust_remote_code=True,
10 dtype="bfloat16",
11 gpu_memory_utilization=0.8
12)
13sampling_params = SamplingParams(max_tokens=20, temperature=1.0)
14print(model.generate("The key to life is", sampling_params)[0].outputs[0].text)1@article{park2024monet,
2 title={{Monet: Mixture of Monosemantic Experts for Transformers}},
3 author={Jungwoo Park and Young Jin Ahn and Kee-Eung Kim and Jaewoo Kang},
4 journal={arXiv preprint arXiv:2404.05567},
5 year={2024}
6}