Instructions to use mohammedahmedezz2004/bayan_model_lora_phase2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mohammedahmedezz2004/bayan_model_lora_phase2 with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("mohammed525671/final_arabic_grammarly_2") model = PeftModel.from_pretrained(base_model, "mohammedahmedezz2004/bayan_model_lora_phase2") - Transformers
How to use mohammedahmedezz2004/bayan_model_lora_phase2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mohammedahmedezz2004/bayan_model_lora_phase2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from mohammedahmedezz2004/bayan_model_lora_phase2: direct link, hf CLI and curl.
- Browser
- Download file 7.77 MB
-
https://huggingface.co/mohammedahmedezz2004/bayan_model_lora_phase2/resolve/main/tokenizer.json
- Command line
-
hf download hf://mohammedahmedezz2004/bayan_model_lora_phase2/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/mohammedahmedezz2004/bayan_model_lora_phase2/resolve/main/tokenizer.json
7.77 MB
File too large to display, you can check the raw version instead.