Text Generation
Transformers
Safetensors
Arabic
qwen2
fill-mask
Text-To-SQL
Arabic
Spider
SQL
text2text-generation
conversational
text-generation-inference
Instructions to use OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelWithLMHead tokenizer = AutoTokenizer.from_pretrained("OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B") model = AutoModelWithLMHead.from_pretrained("OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B") 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 OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B
- SGLang
How to use OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B 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 "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B" \ --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": "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B", "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 "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B" \ --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": "OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B with Docker Model Runner:
docker model run hf.co/OsamaMo/Arabic_Text-To-SQL_using_Qwen2.5-1.5B
Training in progress, step 500, checkpoint
Browse files
last-checkpoint/adapter_config.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
-
"o_proj",
|
| 24 |
-
"k_proj",
|
| 25 |
-
"down_proj",
|
| 26 |
-
"gate_proj",
|
| 27 |
"q_proj",
|
| 28 |
"v_proj",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
"up_proj"
|
| 30 |
],
|
| 31 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"q_proj",
|
| 24 |
"v_proj",
|
| 25 |
+
"gate_proj",
|
| 26 |
+
"k_proj",
|
| 27 |
+
"down_proj",
|
| 28 |
+
"o_proj",
|
| 29 |
"up_proj"
|
| 30 |
],
|
| 31 |
"task_type": "CAUSAL_LM",
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -81,9 +81,9 @@
|
|
| 81 |
{
|
| 82 |
"epoch": 0.07145409074669525,
|
| 83 |
"eval_news_finetune_val_loss": 0.48679304122924805,
|
| 84 |
-
"eval_news_finetune_val_runtime":
|
| 85 |
-
"eval_news_finetune_val_samples_per_second": 1.
|
| 86 |
-
"eval_news_finetune_val_steps_per_second": 1.
|
| 87 |
"step": 100
|
| 88 |
},
|
| 89 |
{
|
|
@@ -159,9 +159,9 @@
|
|
| 159 |
{
|
| 160 |
"epoch": 0.1429081814933905,
|
| 161 |
"eval_news_finetune_val_loss": 0.4338369369506836,
|
| 162 |
-
"eval_news_finetune_val_runtime":
|
| 163 |
-
"eval_news_finetune_val_samples_per_second": 1.
|
| 164 |
-
"eval_news_finetune_val_steps_per_second": 1.
|
| 165 |
"step": 200
|
| 166 |
},
|
| 167 |
{
|
|
@@ -237,9 +237,9 @@
|
|
| 237 |
{
|
| 238 |
"epoch": 0.21436227224008575,
|
| 239 |
"eval_news_finetune_val_loss": 0.40391305088996887,
|
| 240 |
-
"eval_news_finetune_val_runtime":
|
| 241 |
-
"eval_news_finetune_val_samples_per_second": 1.
|
| 242 |
-
"eval_news_finetune_val_steps_per_second": 1.
|
| 243 |
"step": 300
|
| 244 |
},
|
| 245 |
{
|
|
@@ -315,9 +315,9 @@
|
|
| 315 |
{
|
| 316 |
"epoch": 0.285816362986781,
|
| 317 |
"eval_news_finetune_val_loss": 0.39322975277900696,
|
| 318 |
-
"eval_news_finetune_val_runtime":
|
| 319 |
-
"eval_news_finetune_val_samples_per_second": 1.
|
| 320 |
-
"eval_news_finetune_val_steps_per_second": 1.
|
| 321 |
"step": 400
|
| 322 |
},
|
| 323 |
{
|
|
@@ -393,9 +393,9 @@
|
|
| 393 |
{
|
| 394 |
"epoch": 0.35727045373347627,
|
| 395 |
"eval_news_finetune_val_loss": 0.3787713646888733,
|
| 396 |
-
"eval_news_finetune_val_runtime":
|
| 397 |
-
"eval_news_finetune_val_samples_per_second": 1.
|
| 398 |
-
"eval_news_finetune_val_steps_per_second": 1.
|
| 399 |
"step": 500
|
| 400 |
}
|
| 401 |
],
|
|
|
|
| 81 |
{
|
| 82 |
"epoch": 0.07145409074669525,
|
| 83 |
"eval_news_finetune_val_loss": 0.48679304122924805,
|
| 84 |
+
"eval_news_finetune_val_runtime": 1001.9158,
|
| 85 |
+
"eval_news_finetune_val_samples_per_second": 1.397,
|
| 86 |
+
"eval_news_finetune_val_steps_per_second": 1.397,
|
| 87 |
"step": 100
|
| 88 |
},
|
| 89 |
{
|
|
|
|
| 159 |
{
|
| 160 |
"epoch": 0.1429081814933905,
|
| 161 |
"eval_news_finetune_val_loss": 0.4338369369506836,
|
| 162 |
+
"eval_news_finetune_val_runtime": 1002.1695,
|
| 163 |
+
"eval_news_finetune_val_samples_per_second": 1.397,
|
| 164 |
+
"eval_news_finetune_val_steps_per_second": 1.397,
|
| 165 |
"step": 200
|
| 166 |
},
|
| 167 |
{
|
|
|
|
| 237 |
{
|
| 238 |
"epoch": 0.21436227224008575,
|
| 239 |
"eval_news_finetune_val_loss": 0.40391305088996887,
|
| 240 |
+
"eval_news_finetune_val_runtime": 1002.5797,
|
| 241 |
+
"eval_news_finetune_val_samples_per_second": 1.396,
|
| 242 |
+
"eval_news_finetune_val_steps_per_second": 1.396,
|
| 243 |
"step": 300
|
| 244 |
},
|
| 245 |
{
|
|
|
|
| 315 |
{
|
| 316 |
"epoch": 0.285816362986781,
|
| 317 |
"eval_news_finetune_val_loss": 0.39322975277900696,
|
| 318 |
+
"eval_news_finetune_val_runtime": 1002.8865,
|
| 319 |
+
"eval_news_finetune_val_samples_per_second": 1.396,
|
| 320 |
+
"eval_news_finetune_val_steps_per_second": 1.396,
|
| 321 |
"step": 400
|
| 322 |
},
|
| 323 |
{
|
|
|
|
| 393 |
{
|
| 394 |
"epoch": 0.35727045373347627,
|
| 395 |
"eval_news_finetune_val_loss": 0.3787713646888733,
|
| 396 |
+
"eval_news_finetune_val_runtime": 1002.8588,
|
| 397 |
+
"eval_news_finetune_val_samples_per_second": 1.396,
|
| 398 |
+
"eval_news_finetune_val_steps_per_second": 1.396,
|
| 399 |
"step": 500
|
| 400 |
}
|
| 401 |
],
|
last-checkpoint/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5624
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:367406c6dccce148fee91e86e6fa08ac415e3c6a88231b8f42f8d49575bf98f6
|
| 3 |
size 5624
|