Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
qwen3_vl
vision-language
visual-token-pruning
visionzip
scopd
Instructions to use enmingzhangzz/SCOPD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enmingzhangzz/SCOPD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="enmingzhangzz/SCOPD")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("enmingzhangzz/SCOPD", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use enmingzhangzz/SCOPD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "enmingzhangzz/SCOPD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enmingzhangzz/SCOPD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/enmingzhangzz/SCOPD
- SGLang
How to use enmingzhangzz/SCOPD 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 "enmingzhangzz/SCOPD" \ --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": "enmingzhangzz/SCOPD", "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 "enmingzhangzz/SCOPD" \ --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": "enmingzhangzz/SCOPD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use enmingzhangzz/SCOPD with Docker Model Runner:
docker model run hf.co/enmingzhangzz/SCOPD
Publish qwen3-vl-4b-scopd
Browse files
models/qwen3-vl-4b-scopd/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Qwen3-VL-4B SCOPD
|
| 2 |
+
|
| 3 |
+
LoRA adapter for Qwen3-VL-4B-Instruct.
|
| 4 |
+
|
| 5 |
+
Objective: forward KL: KL(teacher || student).
|
| 6 |
+
|
| 7 |
+
Selection: all response tokens.
|
| 8 |
+
|
| 9 |
+
See the [collection model card](../../README.md) for download and evaluation.
|
models/qwen3-vl-4b-scopd/adapter_config.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen3-VL-4B-Instruct",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": "layers",
|
| 17 |
+
"layers_to_transform": [
|
| 18 |
+
0,
|
| 19 |
+
1,
|
| 20 |
+
2,
|
| 21 |
+
3,
|
| 22 |
+
4,
|
| 23 |
+
5,
|
| 24 |
+
6,
|
| 25 |
+
7,
|
| 26 |
+
8,
|
| 27 |
+
9,
|
| 28 |
+
10,
|
| 29 |
+
11,
|
| 30 |
+
12,
|
| 31 |
+
13,
|
| 32 |
+
14,
|
| 33 |
+
15,
|
| 34 |
+
16,
|
| 35 |
+
17,
|
| 36 |
+
18,
|
| 37 |
+
19,
|
| 38 |
+
20,
|
| 39 |
+
21,
|
| 40 |
+
22,
|
| 41 |
+
23,
|
| 42 |
+
24,
|
| 43 |
+
25,
|
| 44 |
+
26,
|
| 45 |
+
27,
|
| 46 |
+
28,
|
| 47 |
+
29,
|
| 48 |
+
30,
|
| 49 |
+
31,
|
| 50 |
+
32,
|
| 51 |
+
33,
|
| 52 |
+
34,
|
| 53 |
+
35
|
| 54 |
+
],
|
| 55 |
+
"loftq_config": {},
|
| 56 |
+
"lora_alpha": 32,
|
| 57 |
+
"lora_bias": false,
|
| 58 |
+
"lora_dropout": 0.0,
|
| 59 |
+
"megatron_config": null,
|
| 60 |
+
"megatron_core": "megatron.core",
|
| 61 |
+
"modules_to_save": null,
|
| 62 |
+
"peft_type": "LORA",
|
| 63 |
+
"peft_version": "0.18.1",
|
| 64 |
+
"qalora_group_size": 16,
|
| 65 |
+
"r": 16,
|
| 66 |
+
"rank_pattern": {},
|
| 67 |
+
"revision": "ebb281ec70b05090aa6165b016eac8ec08e71b17",
|
| 68 |
+
"target_modules": [
|
| 69 |
+
"k_proj",
|
| 70 |
+
"o_proj",
|
| 71 |
+
"q_proj",
|
| 72 |
+
"down_proj",
|
| 73 |
+
"gate_proj",
|
| 74 |
+
"v_proj",
|
| 75 |
+
"up_proj"
|
| 76 |
+
],
|
| 77 |
+
"target_parameters": null,
|
| 78 |
+
"task_type": "CAUSAL_LM",
|
| 79 |
+
"trainable_token_indices": null,
|
| 80 |
+
"use_dora": false,
|
| 81 |
+
"use_qalora": false,
|
| 82 |
+
"use_rslora": false
|
| 83 |
+
}
|
models/qwen3-vl-4b-scopd/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aec6fba5176359d4d1a3d906d3722a51b9f7f21c79d5d5989120b075915102f
|
| 3 |
+
size 132195448
|
models/qwen3-vl-4b-scopd/provenance.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "qwen3-vl-4b-scopd",
|
| 3 |
+
"label": "Qwen3-VL-4B SCOPD",
|
| 4 |
+
"objective": "forward KL: KL(teacher || student)",
|
| 5 |
+
"selection": "all response tokens",
|
| 6 |
+
"adapter_sha256": "6aec6fba5176359d4d1a3d906d3722a51b9f7f21c79d5d5989120b075915102f",
|
| 7 |
+
"optimizer_updates": 320,
|
| 8 |
+
"base_model": "Qwen/Qwen3-VL-4B-Instruct",
|
| 9 |
+
"base_revision": "ebb281ec70b05090aa6165b016eac8ec08e71b17",
|
| 10 |
+
"merged": false,
|
| 11 |
+
"format": "peft_lora",
|
| 12 |
+
"dtype": "float32",
|
| 13 |
+
"inference_dtype": "bfloat16",
|
| 14 |
+
"questions_processed": 10240,
|
| 15 |
+
"path": "models/qwen3-vl-4b-scopd",
|
| 16 |
+
"tensor_count": 504,
|
| 17 |
+
"parameter_count": 33030144,
|
| 18 |
+
"weight_bytes": 132120576,
|
| 19 |
+
"lora_rank": 16,
|
| 20 |
+
"lora_alpha": 32,
|
| 21 |
+
"lora_dropout": 0.0
|
| 22 |
+
}
|