Instructions to use Naseej/AskMe-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Naseej/AskMe-Large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Naseej/AskMe-Large")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Naseej/AskMe-Large") model = AutoModelForCausalLM.from_pretrained("Naseej/AskMe-Large") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Naseej/AskMe-Large with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Naseej/AskMe-Large" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Naseej/AskMe-Large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Naseej/AskMe-Large
- SGLang
How to use Naseej/AskMe-Large 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 "Naseej/AskMe-Large" \ --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": "Naseej/AskMe-Large", "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 "Naseej/AskMe-Large" \ --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": "Naseej/AskMe-Large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Naseej/AskMe-Large with Docker Model Runner:
docker model run hf.co/Naseej/AskMe-Large
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,6 +18,9 @@ The dataset used for fine-tuning AskMe consists of Arabic instruction-based conv
|
|
| 18 |
## Fine-tuning
|
| 19 |
AskMe is fine-tuned using the aubmindlab/aragpt2-large model, which is specifically designed for Arabic language understanding and generation tasks. The research team at Naseej has carefully fine-tuned the model to improve its performance on instruction-based tasks, ensuring that the model is capable of generating accurate and contextually relevant responses.
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
## Usage
|
| 22 |
AskMe can be used for a variety of tasks that involve understanding and responding to instructions or prompts in Arabic. This includes tasks such as:
|
| 23 |
|
|
|
|
| 18 |
## Fine-tuning
|
| 19 |
AskMe is fine-tuned using the aubmindlab/aragpt2-large model, which is specifically designed for Arabic language understanding and generation tasks. The research team at Naseej has carefully fine-tuned the model to improve its performance on instruction-based tasks, ensuring that the model is capable of generating accurate and contextually relevant responses.
|
| 20 |
|
| 21 |
+
## Demo
|
| 22 |
+
https://askme.naseej.ai
|
| 23 |
+
|
| 24 |
## Usage
|
| 25 |
AskMe can be used for a variety of tasks that involve understanding and responding to instructions or prompts in Arabic. This includes tasks such as:
|
| 26 |
|