Text Generation
Transformers
Safetensors
Arabic
English
llama
llama3.1
arabic
unsloth
text-generation-inference
Instructions to use Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT") model = AutoModelForCausalLM.from_pretrained("Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT
- SGLang
How to use Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT with Docker Model Runner:
docker model run hf.co/Omartificial-Intelligence-Space/Arabic-llama3.1-16bit-FT
update readme.md
Browse files
README.md
CHANGED
|
@@ -18,13 +18,13 @@ This fine-tuned model is based on the newly released LLaMA 3.1 model and has bee
|
|
| 18 |
|
| 19 |
## Model Summary
|
| 20 |
|
| 21 |
-
- **Model Type:** Llama3.1
|
| 22 |
- **Language(s):** Arabic
|
| 23 |
- **Base Model:** [unsloth/Meta-Llama-3.1-8B](https://huggingface.co/unsloth/Meta-Llama-3.1-8B)
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
| 27 |
-
- The model was fine-tuned in 4-bit precision using [unsloth](https://github.com/unslothai/unsloth)
|
| 28 |
|
| 29 |
|
| 30 |
## I prepared for you a Gradio App to do inference with the model and compare its results with the base llama3.1 model
|
|
|
|
| 18 |
|
| 19 |
## Model Summary
|
| 20 |
|
| 21 |
+
- **Model Type:** Llama3.1 16 bit Model
|
| 22 |
- **Language(s):** Arabic
|
| 23 |
- **Base Model:** [unsloth/Meta-Llama-3.1-8B](https://huggingface.co/unsloth/Meta-Llama-3.1-8B)
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
| 27 |
+
- The model was fine-tuned in 4-bit precision using [unsloth](https://github.com/unslothai/unsloth)
|
| 28 |
|
| 29 |
|
| 30 |
## I prepared for you a Gradio App to do inference with the model and compare its results with the base llama3.1 model
|