Instructions to use AlberBshara/ar_llama3.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlberBshara/ar_llama3.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="AlberBshara/ar_llama3.1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AlberBshara/ar_llama3.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use AlberBshara/ar_llama3.1 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlberBshara/ar_llama3.1 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlberBshara/ar_llama3.1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AlberBshara/ar_llama3.1 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="AlberBshara/ar_llama3.1", max_seq_length=2048, )
Running Error
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/AlberBshara/ar_llama3.1/resolve/main/config.json
The above exception was the direct cause of the following exception:
EntryNotFoundError Traceback (most recent call last)
EntryNotFoundError: 404 Client Error. (Request ID: Root=1-66e6aea5-1b75ce985893f80274457157;ae860c2a-13b5-402f-86c0-808aff71386b)
Entry Not Found for url: https://huggingface.co/AlberBshara/ar_llama3.1/resolve/main/config.json.
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py in cached_file(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, token, revision, local_files_only, subfolder, repo_type, user_agent, _raise_exceptions_for_gated_repo, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash, **deprecated_kwargs)
454 if revision is None:
455 revision = "main"
--> 456 raise EnvironmentError(
457 f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout "
458 f"'https://huggingface.co/{path_or_repo_id}/tree/{revision}' for available files."
OSError: AlberBshara/ar_llama3.1 does not appear to have a file named config.json. Checkout 'https://huggingface.co/AlberBshara/ar_llama3.1/tree/main' for available files.