Question Answering
Transformers
Safetensors
Arabic
lfm2
text-generation
arabic
rag
fine-tuned
Lora
liquid
extractive-qa
Instructions to use azeddinShr/LFM2-1.2B-RAG-ARABIC-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azeddinShr/LFM2-1.2B-RAG-ARABIC-LoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="azeddinShr/LFM2-1.2B-RAG-ARABIC-LoRA")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("azeddinShr/LFM2-1.2B-RAG-ARABIC-LoRA") model = AutoModelForCausalLM.from_pretrained("azeddinShr/LFM2-1.2B-RAG-ARABIC-LoRA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|pad|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |