How to use DISLab/Gen-8B-R2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="DISLab/Gen-8B-R2")
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DISLab/Gen-8B-R2") model = AutoModelForCausalLM.from_pretrained("DISLab/Gen-8B-R2")
This PR ensures the "how to use" button appears on the top right, and specifies the Transformers library name.
· Sign up or log in to comment