Image-Text-to-Text
Transformers
Safetensors
qwen3_5
thinking_modes
qwen3.5
grape
vision
multimodal
instruct
chat
coding
math
science
reasoning
creative_writing
roleplay
conversational
Instructions to use SL-AI/GRaPE-2.5-Quasar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SL-AI/GRaPE-2.5-Quasar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SL-AI/GRaPE-2.5-Quasar") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("SL-AI/GRaPE-2.5-Quasar") model = AutoModelForMultimodalLM.from_pretrained("SL-AI/GRaPE-2.5-Quasar", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SL-AI/GRaPE-2.5-Quasar with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SL-AI/GRaPE-2.5-Quasar" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SL-AI/GRaPE-2.5-Quasar", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SL-AI/GRaPE-2.5-Quasar
- SGLang
How to use SL-AI/GRaPE-2.5-Quasar 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 "SL-AI/GRaPE-2.5-Quasar" \ --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": "SL-AI/GRaPE-2.5-Quasar", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "SL-AI/GRaPE-2.5-Quasar" \ --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": "SL-AI/GRaPE-2.5-Quasar", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use SL-AI/GRaPE-2.5-Quasar with Docker Model Runner:
docker model run hf.co/SL-AI/GRaPE-2.5-Quasar
Update config.json
Browse files- config.json +1 -43
config.json
CHANGED
|
@@ -1,50 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "GRaPE 2.5 Quasar
|
| 3 |
"architectures": [
|
| 4 |
"Qwen3_5ForConditionalGeneration"
|
| 5 |
],
|
| 6 |
-
"grape_training": {
|
| 7 |
-
"assistant_only_loss": true,
|
| 8 |
-
"checkpoint_state": {
|
| 9 |
-
"best_eval_nll": 0.9964489920094617,
|
| 10 |
-
"best_step": 2900,
|
| 11 |
-
"dataset_sha256": "d308ed07fe2330bd6f0a42be8d9a8c079e9e841461116fd79d7e850c0520e0b4",
|
| 12 |
-
"evals_without_improvement": 0,
|
| 13 |
-
"lora_alpha": 48,
|
| 14 |
-
"lora_module_hash": "43a5d0a3bb52b9ca",
|
| 15 |
-
"lora_rank": 24,
|
| 16 |
-
"lora_rank_migration": {
|
| 17 |
-
"expanded": true,
|
| 18 |
-
"expanded_tensor_count": 500,
|
| 19 |
-
"function_preserving_scale": 2.0,
|
| 20 |
-
"optimizer": {
|
| 21 |
-
"lora_parameter_count": 500,
|
| 22 |
-
"preserved_state_count": 1,
|
| 23 |
-
"removed_state_count": 500
|
| 24 |
-
},
|
| 25 |
-
"source_alpha": 16,
|
| 26 |
-
"source_rank": 8,
|
| 27 |
-
"target_alpha": 48,
|
| 28 |
-
"target_rank": 24,
|
| 29 |
-
"tensor_count": 500
|
| 30 |
-
},
|
| 31 |
-
"loss_objective": "grape25-structure-v2",
|
| 32 |
-
"module_hash": "4ff0564627e1eb9c",
|
| 33 |
-
"started_at": "2026-08-27T16:08:54-0700",
|
| 34 |
-
"step": 2900,
|
| 35 |
-
"tokens": 190054400,
|
| 36 |
-
"trainable_tokens": 123546691
|
| 37 |
-
},
|
| 38 |
-
"checkpoint_step": 2900,
|
| 39 |
-
"context_length": 65536,
|
| 40 |
-
"crt_modules": 1,
|
| 41 |
-
"inherited_lora_checkpoint": null,
|
| 42 |
-
"inherited_lora_scale": null,
|
| 43 |
-
"inherited_lora_subtracted": 0,
|
| 44 |
-
"lora_modules": 250,
|
| 45 |
-
"lora_scale": 2.0,
|
| 46 |
-
"model_authored_think": true
|
| 47 |
-
},
|
| 48 |
"image_token_id": 248056,
|
| 49 |
"language_model_only": false,
|
| 50 |
"model_type": "qwen3_5",
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "GRaPE 2.5 Quasar",
|
| 3 |
"architectures": [
|
| 4 |
"Qwen3_5ForConditionalGeneration"
|
| 5 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"image_token_id": 248056,
|
| 7 |
"language_model_only": false,
|
| 8 |
"model_type": "qwen3_5",
|