Instructions to use DISLab/Gen-8B-R2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DISLab/Gen-8B-R2 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="DISLab/Gen-8B-R2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DISLab/Gen-8B-R2") model = AutoModelForCausalLM.from_pretrained("DISLab/Gen-8B-R2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature7b69fb1 -
Add library name tag (#1)
Verified signature- Add library name tag (b35509d813738a5c91552eb566b9df621894456c) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>fa9e8ee -
Update README.md
Verified signaturea48eb1f -
Update README.md
Verified signature10c10aa -
Upload tokenizer
Verified signatured65115a -
Upload LlamaForCausalLM
Verified signature86b4111
-
initial commit
Verified signature8f9b398