Views
No views yet
mamba-gpt-7b is trained on multiple datasets:transformers library on a machine with GPU(s), first make sure you have the transformers, accelerate and torch libraries installed.1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("CobraMamba/mamba-gpt-7b-v1")
4model = AutoModelForCausalLM.from_pretrained("CobraMamba/mamba-gpt-7b-v1", trust_remote_code=True, torch_dtype=torch.float16)
5
6input_content = "Your text here"
7input_ids = tokenizer.encode(input_content, return_tensors="pt")
8output = model.generate(input_ids, max_length=128, temperature=0.7)
9output_text = tokenizer.decode(output[0], skip_special_tokens=True)
10print(output_text)
111@Misc{mamba-gpt-7b-v1,
2 title = {Mamba-GPT-7b-v1},
3 author = {chiliu},
4 howpublished = {\url{https://huggingface.co/CobraMamba/mamba-gpt-7b-v1}},
5 year = {2023}
6}| Metric | Value |
|---|---|
| Avg. | 54.77 |
| ARC (25-shot) | 61.26 |
| HellaSwag (10-shot) | 84.1 |
| MMLU (5-shot) | 63.46 |
| TruthfulQA (0-shot) | 46.34 |
| Winogrande (5-shot) | 79.16 |
| GSM8K (5-shot) | 17.36 |
| DROP (3-shot) | 31.67 |