Instructions to use gasolsun/DynamicRAG-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gasolsun/DynamicRAG-8B 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="gasolsun/DynamicRAG-8B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gasolsun/DynamicRAG-8B") model = AutoModelForCausalLM.from_pretrained("gasolsun/DynamicRAG-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update Arxiv ID and pipeline tag
Verified signatureSee my other PR :)bf580bf
-
Add pipeline tag and library name (#1)
Verified signature- Add pipeline tag and library name (241220f9c073b4cc1a8948a7b7ca46cdde3148bd) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>6f18dcf
-
Create README.md
Verified signaturef32fc6f
-
Upload 3 files
Verified signature8cec4e8 -
Upload 7 files
Verified signaturee903174 -
initial commit
Verified signaturef4d490f