Text Generation
Transformers
Safetensors
Arabic
gemma3_text
function-calling
arabic
tool-use
agentic
gemma
fine-tuned
conversational
text-generation-inference
Instructions to use AISA-Framework/AISA-AR-FunctionCall-FT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AISA-Framework/AISA-AR-FunctionCall-FT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AISA-Framework/AISA-AR-FunctionCall-FT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AISA-Framework/AISA-AR-FunctionCall-FT") model = AutoModelForCausalLM.from_pretrained("AISA-Framework/AISA-AR-FunctionCall-FT") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use AISA-Framework/AISA-AR-FunctionCall-FT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AISA-Framework/AISA-AR-FunctionCall-FT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AISA-Framework/AISA-AR-FunctionCall-FT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AISA-Framework/AISA-AR-FunctionCall-FT
- SGLang
How to use AISA-Framework/AISA-AR-FunctionCall-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 "AISA-Framework/AISA-AR-FunctionCall-FT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AISA-Framework/AISA-AR-FunctionCall-FT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AISA-Framework/AISA-AR-FunctionCall-FT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AISA-Framework/AISA-AR-FunctionCall-FT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AISA-Framework/AISA-AR-FunctionCall-FT with Docker Model Runner:
docker model run hf.co/AISA-Framework/AISA-AR-FunctionCall-FT
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,6 +31,20 @@ The model converts natural Arabic requests into structured executable API calls,
|
|
| 31 |
|
| 32 |
> This model is part of the **AISA** (Agentic AI Systems Architecture) initiative.
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
---
|
| 35 |
|
| 36 |
## Model Overview
|
|
|
|
| 31 |
|
| 32 |
> This model is part of the **AISA** (Agentic AI Systems Architecture) initiative.
|
| 33 |
|
| 34 |
+
|
| 35 |
+
## Try the Model in Google Colab
|
| 36 |
+
|
| 37 |
+
You can run a full inference example using the notebook below.
|
| 38 |
+
|
| 39 |
+
[](https://colab.research.google.com/drive/1zTBeIEvb66AO6GVWZCkY-8PyYM01KQyO?usp=sharing)
|
| 40 |
+
|
| 41 |
+
The notebook demonstrates:
|
| 42 |
+
|
| 43 |
+
- Loading the model
|
| 44 |
+
- Defining tool schemas
|
| 45 |
+
- Generating structured tool calls
|
| 46 |
+
- Parsing function call outputs
|
| 47 |
+
|
| 48 |
---
|
| 49 |
|
| 50 |
## Model Overview
|