Views
No views yet

If you're interested in building large-scale language models to solve a wide variety of problems in a wide variety of domains, you should consider joining Allganize. For a coffee chat or if you have any questions, please do not hesitate to contact me as well! - kuotient.dev@gmail.com
| Model | boolq | copa | hellaswag | sentineg |
|---|---|---|---|---|
| kuotient/mamba-ko-2.8b | 0.6213 | 0.6150 | 0.4014 | 0.3383 |
| state_spaces/mamba-2.8b-slimpj | 0.3343 | 0.4867 | 0.3452 | 0.3547 |
| kuotient/mamba-ko-2.8b-old (2B trained only) | 0.4236 | 0.5896 | 0.4012 | 0.4348 |
| kuotient/mamba-ko-2.8b-old-instruct | 0.4041 | 0.6505 | 0.4906 | 0.3348 |
| EleutherAI/polyglot-ko-1.3b | 0.3552 | 0.7196 | 0.5247 | 0.6790 |
| maywell/TinyWand-SFT | 0.3455 | 0.6142 | 0.3944 | N/A |
| microsoft/phi-2 | 0.3343 | 0.4792 | 0.3235 | N/A |
| TinyLlama/TinyLlama-1.1B | 0.3343 | 0.4784 | 0.3396 | N/A |
pip install causal_conv1d>=1.1.0 mamba-ssm==1.1.11import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM, TextStreamer
3from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
4
5device = "cuda" if torch.cuda.is_available() else "cpu"
6
7model_name = "kuotient/mamba-ko-2.8b"
8tokenizer = AutoTokenizer.from_pretrained(model_name)
9tokenizer.pad_token = tokenizer.eos_token
10
11model = MambaLMHeadModel.from_pretrained(
12 model_name, device=device, dtype=torch.float16)
13
14prompt = "아이들한테 제공할 영양가 있는 음식 5가지의 예시는 다음과 같다."
15
16tokens = tokenizer(prompt, return_tensors='pt')
17input_ids = tokens.input_ids.to(device)
18streamer = TextStreamer(tokenizer)
19
20out = model.generate(
21 input_ids=input_ids,
22 streamer=streamer,
23 max_length=2000,
24 temperature=0.7,
25 top_p=0.7,
26 eos_token_id=tokenizer.eos_token_id,
27)