Edit model card

An xLSTM Model

Trained with Helibrunna (fork)

To use this model the xLSTM package is required. We recommend to install it locally with conda:

git clone https://github.com/NX-AI/xlstm
cd xlstm
conda env create -n xlstm -f environment_pt220cu121.yaml
conda activate xlstm

Usage

from transformers import AutoModelForCasualLM, AutoTokenizer

model_name_or_path = "PatrickHaller/xlstm_dummy"

model = AutoModelForCasualLM.from_pretrained(model_name_or_path)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)

input_ids = tokenizer.encode("Hello, my dog is cute", return_tensors="pt")
output = model.generate(input_ids, max_length=100, temperature=0.7, do_sample=True)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)

print(generated_text)
Downloads last month
26
Safetensors
Model size
1.25B params
Tensor type
F32
·
Inference API
Unable to determine this model's library. Check the docs .