from transformers import AutoModelForCausalLM, AutoTokenizer
xlstm = AutoModelForCausalLM.from_pretrained("NX-AI/xLSTM-7b", device_map="auto")
# this is a fork of EleutherAI/gpt-neox-20b
tokenizer = AutoTokenizer.from_pretrained("NX-AI/xLSTM-7b")
tokens = tokenizer("Hello xLSTM, how are you doing?", return_tensors='pt')['input_ids'].to(device="cuda")
out = xlstm.generate(tokens, max_new_tokens=20)
print(tokenizer.decode(out[0]))
Speed results
Generation Speed using
torch.cuda.graph
and
torch.compile
optimizations on one NVIDIA H100:
Performance
Using HuggingFace's
lm_eval
:
BBH
MMLU-Pro
Math
MUSR
GPQA
IfEval
0.381
0.242
0.036
0.379
0.280
0.244
Using HuggingFace's
lighteval
in the Leaderboard-v1 settings:
Arc-Challenge (25-shot)
MMLU (5-shot)
Hellaswag (10-shot)
Winogrande (5-shot)
TruthfulQA (0-shot)
GSM8k (5-shot)
OpenbookQA (5-shot)
PiQA (5-shot)
0.584
0.589
0.710
0.742
0.420
0.004
0.443
0.817
License
NXAI Community License (see
LICENSE
file)
Runs of NX-AI xLSTM-7b on huggingface.co
1.2K
Total runs
0
24-hour runs
0
3-day runs
19
7-day runs
531
30-day runs
More Information About xLSTM-7b huggingface.co Model
xLSTM-7b huggingface.co is an AI model on huggingface.co that provides xLSTM-7b's model effect (), which can be used instantly with this NX-AI xLSTM-7b model. huggingface.co supports a free trial of the xLSTM-7b model, and also provides paid use of the xLSTM-7b. Support call xLSTM-7b model through api, including Node.js, Python, http.
xLSTM-7b huggingface.co is an online trial and call api platform, which integrates xLSTM-7b's modeling effects, including api services, and provides a free online trial of xLSTM-7b, you can try xLSTM-7b online for free by clicking the link below.
xLSTM-7b is an open source model from GitHub that offers a free installation service, and any user can find xLSTM-7b on GitHub to install. At the same time, huggingface.co provides the effect of xLSTM-7b install, users can directly use xLSTM-7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.