CATIE-AQ/termith-eval_fr_prompt_keywords_extraction
Viewer • Updated • 8.3k • 39 • 1
How to use LugolBis/G3Q-FR with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="LugolBis/G3Q-FR") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("LugolBis/G3Q-FR")
model = AutoModelForCausalLM.from_pretrained("LugolBis/G3Q-FR", device_map="auto")