Image-Text-to-Text
Transformers
Safetensors
dsv4_vl
text-generation
deepseek-v4
multimodal
vision-language
siglip2
lora
custom_code
Instructions to use LoyalAI/dsv4-flash-0731-vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LoyalAI/dsv4-flash-0731-vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LoyalAI/dsv4-flash-0731-vision", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LoyalAI/dsv4-flash-0731-vision", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LoyalAI/dsv4-flash-0731-vision with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LoyalAI/dsv4-flash-0731-vision" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LoyalAI/dsv4-flash-0731-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LoyalAI/dsv4-flash-0731-vision
- SGLang
How to use LoyalAI/dsv4-flash-0731-vision 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 "LoyalAI/dsv4-flash-0731-vision" \ --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": "LoyalAI/dsv4-flash-0731-vision", "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 "LoyalAI/dsv4-flash-0731-vision" \ --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": "LoyalAI/dsv4-flash-0731-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LoyalAI/dsv4-flash-0731-vision with Docker Model Runner:
docker model run hf.co/LoyalAI/dsv4-flash-0731-vision
Back up audited stateful Stage-2 checkpoint 5980
Browse files- .gitattributes +9 -0
- recovery_manifest.json +86 -1
- stage2/stateful/checkpoint-0005980/checkpoint-5980/adapter_model.safetensors +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/args.json +451 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/.metadata +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__0_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__1_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__2_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__3_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__4_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__5_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__6_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__7_0.distcp +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/common.pt +3 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/metadata.json +1 -0
- stage2/stateful/checkpoint-0005980/checkpoint-5980/latest_checkpointed_iteration.txt +1 -0
- stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/metadata.json +36 -0
- stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/projector.safetensors +3 -0
- stage2/stateful/checkpoint-0005980/recovery_receipt.json +73 -0
.gitattributes
CHANGED
|
@@ -150,3 +150,12 @@ stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__4_0.distcp fil
|
|
| 150 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 151 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 152 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 151 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 152 |
stage2/stateful/checkpoint-0005520/checkpoint-5520/iter_0005520/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 154 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 155 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 156 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 157 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
recovery_manifest.json
CHANGED
|
@@ -1339,7 +1339,92 @@
|
|
| 1339 |
"path": "stage2/stateful/checkpoint-0005520/recovery_receipt.json",
|
| 1340 |
"bytes": 2761,
|
| 1341 |
"sha256": "58de7267cd6fbbb591b3587e4b4faca3a0bf3aa8f3ca685edcf0196d099d78ff"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1342 |
}
|
| 1343 |
],
|
| 1344 |
-
"updated_at": "2026-08-
|
| 1345 |
}
|
|
|
|
| 1339 |
"path": "stage2/stateful/checkpoint-0005520/recovery_receipt.json",
|
| 1340 |
"bytes": 2761,
|
| 1341 |
"sha256": "58de7267cd6fbbb591b3587e4b4faca3a0bf3aa8f3ca685edcf0196d099d78ff"
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/adapter_model.safetensors",
|
| 1345 |
+
"bytes": 307219032,
|
| 1346 |
+
"sha256": "b9c47c9cd3b1795934a7463cd3b2b15b2af283ed2adffd83515cff1463155f0e"
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/args.json",
|
| 1350 |
+
"bytes": 14952,
|
| 1351 |
+
"sha256": "eaf7b14ff4b3893b5ad83e42596727507c80ffc9c2eb5d5abe46490de02a87af"
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/.metadata",
|
| 1355 |
+
"bytes": 583217,
|
| 1356 |
+
"sha256": "a12af93e332cf97ec0ea6a8ed96ec2b3b2d2146f23f4fdab1ddbd8b64bc63c88"
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__0_0.distcp",
|
| 1360 |
+
"bytes": 301672061,
|
| 1361 |
+
"sha256": "9b0d254769d7a313084a61c5d7635e25dde24f932a1b839dca837a57391a996d"
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__1_0.distcp",
|
| 1365 |
+
"bytes": 301330419,
|
| 1366 |
+
"sha256": "e9b675ce45fe1f27d2cc1f36b0155184c381d252022f36bd6a19bc52a8f7010a"
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__2_0.distcp",
|
| 1370 |
+
"bytes": 301331996,
|
| 1371 |
+
"sha256": "b68e9892bc6f5f9977772f684c15af9681af857e6c8209e9ada63f507d0b0491"
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__3_0.distcp",
|
| 1375 |
+
"bytes": 301336727,
|
| 1376 |
+
"sha256": "6ba4911ee752a68b373847dcad6f421ff74a3de33f6dc2a74d4dbe5155b3caae"
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__4_0.distcp",
|
| 1380 |
+
"bytes": 301336727,
|
| 1381 |
+
"sha256": "8cb1366f3c97b612e2e4f33363dc62b306b7e19b2d953295501e975ef3ad57a7"
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__5_0.distcp",
|
| 1385 |
+
"bytes": 301350920,
|
| 1386 |
+
"sha256": "0bb8354bff8c56d443559d169e3ede999cbfa1e311e4ffdc1f1ec5b5e469e780"
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__6_0.distcp",
|
| 1390 |
+
"bytes": 301346189,
|
| 1391 |
+
"sha256": "95e75399511261d8a92e0b15441dbece4368cc21dedc6c656dfce434bcfe2fe3"
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__7_0.distcp",
|
| 1395 |
+
"bytes": 301275922,
|
| 1396 |
+
"sha256": "a7a4a4e1bff76025c609ba48779997d0c8c7eb35b17fd10bc48626f473b285b3"
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/common.pt",
|
| 1400 |
+
"bytes": 16999,
|
| 1401 |
+
"sha256": "5835cdf434d5f839971f9148f4fa8884c65769e9fc63206eb3c8c5a4d2c7fdbf"
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/metadata.json",
|
| 1405 |
+
"bytes": 119,
|
| 1406 |
+
"sha256": "9817072de14c715c70e8435a7fee90bac30abaf6885fc53ade6fe88babeef851"
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"path": "stage2/stateful/checkpoint-0005980/checkpoint-5980/latest_checkpointed_iteration.txt",
|
| 1410 |
+
"bytes": 4,
|
| 1411 |
+
"sha256": "0354fa127deb6e3b93672221f6ff949087c73ca67a45bc88ddcbde6042d40a8a"
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"path": "stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/metadata.json",
|
| 1415 |
+
"bytes": 860,
|
| 1416 |
+
"sha256": "d89ef62886add6af70ac0ba70586a560f0d0989c1651d0c56788df8934b3ae42"
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"path": "stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/projector.safetensors",
|
| 1420 |
+
"bytes": 43008480,
|
| 1421 |
+
"sha256": "e87cdaf000c584daae1c9b5fdcaf6fa6afd12ff56359ff3c311d300b31b14ba3"
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"path": "stage2/stateful/checkpoint-0005980/recovery_receipt.json",
|
| 1425 |
+
"bytes": 2761,
|
| 1426 |
+
"sha256": "f2b96ab178b99bbd09b54fcce42c5010e4886f38851d7156f0a015155353c005"
|
| 1427 |
}
|
| 1428 |
],
|
| 1429 |
+
"updated_at": "2026-08-09T06:04:17Z"
|
| 1430 |
}
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9c47c9cd3b1795934a7463cd3b2b15b2af283ed2adffd83515cff1463155f0e
|
| 3 |
+
size 307219032
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/args.json
ADDED
|
@@ -0,0 +1,451 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"use_ray": false,
|
| 3 |
+
"ray_exp_name": null,
|
| 4 |
+
"device_groups": null,
|
| 5 |
+
"model": "/workspace/models/DSV4-VL-init",
|
| 6 |
+
"model_type": "dsv4_vl",
|
| 7 |
+
"model_revision": null,
|
| 8 |
+
"task_type": "causal_lm",
|
| 9 |
+
"torch_dtype": "bfloat16",
|
| 10 |
+
"attn_impl": null,
|
| 11 |
+
"experts_impl": null,
|
| 12 |
+
"new_special_tokens": [],
|
| 13 |
+
"num_labels": null,
|
| 14 |
+
"problem_type": null,
|
| 15 |
+
"rope_scaling": null,
|
| 16 |
+
"device_map": null,
|
| 17 |
+
"max_memory": {},
|
| 18 |
+
"max_model_len": null,
|
| 19 |
+
"local_repo_path": null,
|
| 20 |
+
"init_strategy": null,
|
| 21 |
+
"template": "dsv4_vl",
|
| 22 |
+
"system": null,
|
| 23 |
+
"max_length": 4096,
|
| 24 |
+
"truncation_strategy": "delete",
|
| 25 |
+
"max_pixels": null,
|
| 26 |
+
"agent_template": null,
|
| 27 |
+
"norm_bbox": null,
|
| 28 |
+
"use_chat_template": true,
|
| 29 |
+
"padding_side": "right",
|
| 30 |
+
"padding_free": false,
|
| 31 |
+
"loss_scale": "ignore_empty_think",
|
| 32 |
+
"sequence_parallel_size": 1,
|
| 33 |
+
"is_binary_loss_scale": null,
|
| 34 |
+
"template_backend": "swift",
|
| 35 |
+
"response_prefix": null,
|
| 36 |
+
"enable_thinking": null,
|
| 37 |
+
"preserve_thinking": null,
|
| 38 |
+
"add_non_thinking_prefix": true,
|
| 39 |
+
"disable_ignore_empty_think": false,
|
| 40 |
+
"dataset": [
|
| 41 |
+
"/workspace/datasets/stage2_mix.jsonl"
|
| 42 |
+
],
|
| 43 |
+
"val_dataset": [],
|
| 44 |
+
"cached_dataset": [],
|
| 45 |
+
"cached_val_dataset": [],
|
| 46 |
+
"split_dataset_ratio": 0.0,
|
| 47 |
+
"data_seed": 42,
|
| 48 |
+
"dataset_num_proc": 8,
|
| 49 |
+
"load_from_cache_file": false,
|
| 50 |
+
"dataset_shuffle": true,
|
| 51 |
+
"val_dataset_shuffle": false,
|
| 52 |
+
"streaming": false,
|
| 53 |
+
"interleave_prob": null,
|
| 54 |
+
"stopping_strategy": "first_exhausted",
|
| 55 |
+
"shuffle_buffer_size": 1000,
|
| 56 |
+
"download_mode": "reuse_dataset_if_exists",
|
| 57 |
+
"columns": {},
|
| 58 |
+
"strict": false,
|
| 59 |
+
"remove_unused_columns": true,
|
| 60 |
+
"disable_auto_column_mapping": false,
|
| 61 |
+
"model_name": null,
|
| 62 |
+
"model_author": null,
|
| 63 |
+
"custom_dataset_info": [],
|
| 64 |
+
"quant_method": null,
|
| 65 |
+
"quant_bits": null,
|
| 66 |
+
"hqq_axis": null,
|
| 67 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 68 |
+
"bnb_4bit_quant_type": "nf4",
|
| 69 |
+
"bnb_4bit_use_double_quant": true,
|
| 70 |
+
"bnb_4bit_quant_storage": null,
|
| 71 |
+
"max_new_tokens": null,
|
| 72 |
+
"temperature": 0.9,
|
| 73 |
+
"top_k": -1,
|
| 74 |
+
"top_p": 1.0,
|
| 75 |
+
"repetition_penalty": 1.0,
|
| 76 |
+
"num_beams": 1,
|
| 77 |
+
"stream": false,
|
| 78 |
+
"stop_words": [],
|
| 79 |
+
"logprobs": false,
|
| 80 |
+
"top_logprobs": null,
|
| 81 |
+
"structured_outputs_regex": null,
|
| 82 |
+
"tuner_backend": "peft",
|
| 83 |
+
"tuner_type": "lora",
|
| 84 |
+
"adapters": [],
|
| 85 |
+
"external_plugins": [
|
| 86 |
+
"/workspace/dsv4vision/vision/swift_plugin/dsv4_vl_swift.py",
|
| 87 |
+
"/workspace/dsv4vision/vision/mcore_plugin/dsv4_vl_mcore.py"
|
| 88 |
+
],
|
| 89 |
+
"custom_register_path": [],
|
| 90 |
+
"seed": 42,
|
| 91 |
+
"model_kwargs": {},
|
| 92 |
+
"enable_npu_model_patch": true,
|
| 93 |
+
"load_args": false,
|
| 94 |
+
"load_data_args": false,
|
| 95 |
+
"packing": false,
|
| 96 |
+
"packing_length": null,
|
| 97 |
+
"packing_num_proc": 1,
|
| 98 |
+
"packing_strategy": "binpack",
|
| 99 |
+
"lazy_tokenize": true,
|
| 100 |
+
"use_hf": false,
|
| 101 |
+
"hub_token": null,
|
| 102 |
+
"ddp_timeout": 18000000,
|
| 103 |
+
"ddp_backend": "nccl",
|
| 104 |
+
"ignore_args_error": false,
|
| 105 |
+
"use_swift_lora": false,
|
| 106 |
+
"freeze_llm": false,
|
| 107 |
+
"freeze_vit": true,
|
| 108 |
+
"freeze_aligner": false,
|
| 109 |
+
"freeze_parameters": [],
|
| 110 |
+
"freeze_parameters_regex": null,
|
| 111 |
+
"freeze_parameters_ratio": 0.0,
|
| 112 |
+
"trainable_parameters": [],
|
| 113 |
+
"trainable_parameters_regex": null,
|
| 114 |
+
"target_modules": [
|
| 115 |
+
"linear_q_down_proj",
|
| 116 |
+
"linear_q_up_proj",
|
| 117 |
+
"linear_kv_proj",
|
| 118 |
+
"linear_proj",
|
| 119 |
+
"linear_o_group_proj"
|
| 120 |
+
],
|
| 121 |
+
"target_regex": null,
|
| 122 |
+
"modules_to_save": [],
|
| 123 |
+
"lora_rank": 64,
|
| 124 |
+
"lora_alpha": 128,
|
| 125 |
+
"lora_dropout": 0.0,
|
| 126 |
+
"lora_bias": "none",
|
| 127 |
+
"lora_dtype": null,
|
| 128 |
+
"use_rslora": false,
|
| 129 |
+
"rlhf_type": null,
|
| 130 |
+
"loss_type": null,
|
| 131 |
+
"mcore_ref_model": null,
|
| 132 |
+
"mcore_ref_adapter": null,
|
| 133 |
+
"beta": null,
|
| 134 |
+
"rpo_alpha": null,
|
| 135 |
+
"reference_free": false,
|
| 136 |
+
"label_smoothing": 0.0,
|
| 137 |
+
"f_divergence_type": "reverse_kl",
|
| 138 |
+
"desirable_weight": 1.0,
|
| 139 |
+
"undesirable_weight": 1.0,
|
| 140 |
+
"calculate_KL": null,
|
| 141 |
+
"center_rewards_coefficient": null,
|
| 142 |
+
"teacher_model": null,
|
| 143 |
+
"teacher_model_type": null,
|
| 144 |
+
"teacher_model_revision": null,
|
| 145 |
+
"_teacher_use_disable_adapter": false,
|
| 146 |
+
"teacher_model_server": null,
|
| 147 |
+
"teacher_tag_key": "dataset",
|
| 148 |
+
"gkd_logits_topk": null,
|
| 149 |
+
"lmbda": 0.5,
|
| 150 |
+
"seq_kd": false,
|
| 151 |
+
"offload_teacher_model": false,
|
| 152 |
+
"sft_alpha": 0.0,
|
| 153 |
+
"teacher_kl_coef": 1.0,
|
| 154 |
+
"generation_batch_size": null,
|
| 155 |
+
"steps_per_generation": null,
|
| 156 |
+
"num_generations": 8,
|
| 157 |
+
"num_generations_eval": null,
|
| 158 |
+
"max_completion_length": 512,
|
| 159 |
+
"importance_sampling_level": "token",
|
| 160 |
+
"tau_pos": 1.0,
|
| 161 |
+
"tau_neg": 1.05,
|
| 162 |
+
"real_tau": 0.5,
|
| 163 |
+
"fipo_decay_rate": 32.0,
|
| 164 |
+
"fipo_clip_range": 0.2,
|
| 165 |
+
"fipo_clip_high_only": true,
|
| 166 |
+
"fipo_safety_threshold": 4.0,
|
| 167 |
+
"epsilon": 0.2,
|
| 168 |
+
"epsilon_high": null,
|
| 169 |
+
"delta": null,
|
| 170 |
+
"use_vllm": true,
|
| 171 |
+
"vllm_mode": null,
|
| 172 |
+
"vllm_enable_prefix_caching": true,
|
| 173 |
+
"vllm_gpu_memory_utilization": 0.9,
|
| 174 |
+
"vllm_tensor_parallel_size": 1,
|
| 175 |
+
"vllm_max_model_len": null,
|
| 176 |
+
"vllm_enforce_eager": false,
|
| 177 |
+
"vllm_limit_mm_per_prompt": null,
|
| 178 |
+
"vllm_disable_cascade_attn": false,
|
| 179 |
+
"vllm_max_num_seqs": null,
|
| 180 |
+
"vllm_mm_processor_cache_gb": null,
|
| 181 |
+
"vllm_engine_kwargs": null,
|
| 182 |
+
"vllm_enable_lora": false,
|
| 183 |
+
"sleep_level": 0,
|
| 184 |
+
"offload_optimizer": false,
|
| 185 |
+
"offload_model": false,
|
| 186 |
+
"offload_bridge": false,
|
| 187 |
+
"vllm_server_base_url": null,
|
| 188 |
+
"vllm_server_host": null,
|
| 189 |
+
"vllm_server_port": [
|
| 190 |
+
8000
|
| 191 |
+
],
|
| 192 |
+
"vllm_server_timeout": 240.0,
|
| 193 |
+
"vllm_server_group_port": null,
|
| 194 |
+
"reward_funcs": [],
|
| 195 |
+
"reward_weights": null,
|
| 196 |
+
"cosine_min_len_value_wrong": -0.5,
|
| 197 |
+
"cosine_max_len_value_wrong": 0.0,
|
| 198 |
+
"cosine_min_len_value_correct": 1.0,
|
| 199 |
+
"cosine_max_len_value_correct": 0.5,
|
| 200 |
+
"cosine_max_len": null,
|
| 201 |
+
"repetition_n_grams": 3,
|
| 202 |
+
"repetition_max_penalty": -1.0,
|
| 203 |
+
"soft_max_length": null,
|
| 204 |
+
"soft_cache_length": null,
|
| 205 |
+
"dynamic_sample": false,
|
| 206 |
+
"max_resample_times": 3,
|
| 207 |
+
"overlong_filter": false,
|
| 208 |
+
"scale_rewards": "group",
|
| 209 |
+
"advantage_estimator": "grpo",
|
| 210 |
+
"kl_in_reward": false,
|
| 211 |
+
"wandb_log_unique_prompts": null,
|
| 212 |
+
"log_completions": false,
|
| 213 |
+
"rollout_importance_sampling_mode": null,
|
| 214 |
+
"rollout_importance_sampling_threshold": 2.0,
|
| 215 |
+
"log_rollout_offpolicy_metrics": false,
|
| 216 |
+
"off_policy_sequence_mask_delta": null,
|
| 217 |
+
"log_entropy": false,
|
| 218 |
+
"top_entropy_quantile": 1.0,
|
| 219 |
+
"router_replay_mode": "disabled",
|
| 220 |
+
"reward_model": null,
|
| 221 |
+
"reward_model_plugin": null,
|
| 222 |
+
"sync_ref_model": false,
|
| 223 |
+
"ref_model_sync_steps": 512,
|
| 224 |
+
"ref_model_mixup_alpha": 0.6,
|
| 225 |
+
"async_generate": false,
|
| 226 |
+
"move_model_batches": null,
|
| 227 |
+
"multi_turn_scheduler": null,
|
| 228 |
+
"max_turns": null,
|
| 229 |
+
"completion_length_limit_scope": "per_round",
|
| 230 |
+
"vllm_server_pass_dataset": false,
|
| 231 |
+
"use_gym_env": null,
|
| 232 |
+
"gym_env": null,
|
| 233 |
+
"num_iterations": 1,
|
| 234 |
+
"micro_batch_size": 1,
|
| 235 |
+
"global_batch_size": 128,
|
| 236 |
+
"recompute_granularity": "full",
|
| 237 |
+
"recompute_method": "uniform",
|
| 238 |
+
"recompute_num_layers": 1,
|
| 239 |
+
"recompute_modules": [
|
| 240 |
+
"core_attn"
|
| 241 |
+
],
|
| 242 |
+
"train_iters": 7813,
|
| 243 |
+
"num_train_epochs": null,
|
| 244 |
+
"masked_softmax_fusion": true,
|
| 245 |
+
"bias_dropout_fusion": true,
|
| 246 |
+
"bias_activation_fusion": true,
|
| 247 |
+
"apply_rope_fusion": false,
|
| 248 |
+
"gradient_accumulation_fusion": true,
|
| 249 |
+
"cross_entropy_loss_fusion": true,
|
| 250 |
+
"cross_entropy_fusion_impl": "native",
|
| 251 |
+
"calculate_per_token_loss": true,
|
| 252 |
+
"attention_backend": "<AttnBackend.flash: 1>",
|
| 253 |
+
"optimizer": "adam",
|
| 254 |
+
"optimizer_cpu_offload": false,
|
| 255 |
+
"optimizer_offload_fraction": 1.0,
|
| 256 |
+
"optimizer_cuda_graph": false,
|
| 257 |
+
"use_precision_aware_optimizer": false,
|
| 258 |
+
"main_grads_dtype": "float32",
|
| 259 |
+
"main_params_dtype": "float32",
|
| 260 |
+
"exp_avg_dtype": "float32",
|
| 261 |
+
"exp_avg_sq_dtype": "float32",
|
| 262 |
+
"manual_gc": false,
|
| 263 |
+
"manual_gc_steps": 0,
|
| 264 |
+
"manual_gc_eval": true,
|
| 265 |
+
"train_dataloader_shuffle": true,
|
| 266 |
+
"dataloader_num_workers": 8,
|
| 267 |
+
"dataloader_pin_memory": true,
|
| 268 |
+
"dataloader_persistent_workers": false,
|
| 269 |
+
"dataloader_prefetch_factor": 2,
|
| 270 |
+
"data_sharding": false,
|
| 271 |
+
"group_by_length": false,
|
| 272 |
+
"te_rng_tracker": false,
|
| 273 |
+
"data_parallel_random_init": false,
|
| 274 |
+
"mlp_padding_free": false,
|
| 275 |
+
"lr_warmup_init": 0.0,
|
| 276 |
+
"lr": 0.0002,
|
| 277 |
+
"lr_decay_style": "cosine",
|
| 278 |
+
"lr_decay_iters": null,
|
| 279 |
+
"lr_warmup_iters": 0,
|
| 280 |
+
"lr_warmup_fraction": 0.03,
|
| 281 |
+
"min_lr": 2e-05,
|
| 282 |
+
"lr_wsd_decay_style": "exponential",
|
| 283 |
+
"lr_wsd_decay_iters": null,
|
| 284 |
+
"weight_decay": 0.1,
|
| 285 |
+
"weight_decay_incr_style": "constant",
|
| 286 |
+
"start_weight_decay": 0.1,
|
| 287 |
+
"end_weight_decay": 0.1,
|
| 288 |
+
"clip_grad": 1.0,
|
| 289 |
+
"adam_beta1": 0.9,
|
| 290 |
+
"adam_beta2": 0.95,
|
| 291 |
+
"adam_eps": 1e-08,
|
| 292 |
+
"sgd_momentum": 0.9,
|
| 293 |
+
"muon_momentum": 0.9,
|
| 294 |
+
"muon_split_qkv": true,
|
| 295 |
+
"muon_use_nesterov": false,
|
| 296 |
+
"muon_scale_mode": "spectral",
|
| 297 |
+
"muon_fp32_matmul_prec": "medium",
|
| 298 |
+
"muon_coefficient_type": "quintic",
|
| 299 |
+
"muon_num_ns_steps": 5,
|
| 300 |
+
"muon_tp_mode": "blockwise",
|
| 301 |
+
"muon_extra_scale_factor": 1.0,
|
| 302 |
+
"muon_scalar_optimizer": "adam",
|
| 303 |
+
"output_dir": "/workspace/outputs/stage2_lora",
|
| 304 |
+
"save_steps": 46,
|
| 305 |
+
"no_save_optim": false,
|
| 306 |
+
"no_save_rng": false,
|
| 307 |
+
"mcore_model": "/workspace/models/DSV4-VL-init-mcore-bf16",
|
| 308 |
+
"mcore_adapter": null,
|
| 309 |
+
"no_load_optim": false,
|
| 310 |
+
"no_load_rng": false,
|
| 311 |
+
"finetune": true,
|
| 312 |
+
"perform_initialization": false,
|
| 313 |
+
"use_cpu_initialization": false,
|
| 314 |
+
"async_save": false,
|
| 315 |
+
"save_total_limit": 5,
|
| 316 |
+
"metric_for_best_model": "loss",
|
| 317 |
+
"greater_is_better": false,
|
| 318 |
+
"use_persistent_ckpt_worker": false,
|
| 319 |
+
"dist_ckpt_save_pre_mcore_014": false,
|
| 320 |
+
"dist_ckpt_optim_fully_reshardable": false,
|
| 321 |
+
"distrib_optim_fully_reshardable_mem_efficient": false,
|
| 322 |
+
"local_rank": 0,
|
| 323 |
+
"use_distributed_optimizer": true,
|
| 324 |
+
"use_megatron_fsdp": false,
|
| 325 |
+
"data_parallel_sharding_strategy": "optim_grads_params",
|
| 326 |
+
"tensor_model_parallel_size": 1,
|
| 327 |
+
"pipeline_model_parallel_size": 1,
|
| 328 |
+
"decoder_first_pipeline_num_layers": null,
|
| 329 |
+
"decoder_last_pipeline_num_layers": null,
|
| 330 |
+
"account_for_embedding_in_pipeline_split": false,
|
| 331 |
+
"account_for_loss_in_pipeline_split": false,
|
| 332 |
+
"overlap_p2p_comm": false,
|
| 333 |
+
"batch_p2p_comm": true,
|
| 334 |
+
"align_param_gather": false,
|
| 335 |
+
"sequence_parallel": false,
|
| 336 |
+
"context_parallel_size": 1,
|
| 337 |
+
"cp_comm_type": null,
|
| 338 |
+
"cp_partition_mode": "zigzag",
|
| 339 |
+
"sequence_packing_scheduler": null,
|
| 340 |
+
"tp_comm_overlap": false,
|
| 341 |
+
"overlap_grad_reduce": false,
|
| 342 |
+
"overlap_param_gather": false,
|
| 343 |
+
"overlap_param_gather_with_optimizer_step": false,
|
| 344 |
+
"align_grad_reduce": true,
|
| 345 |
+
"nccl_comm_warmup": false,
|
| 346 |
+
"virtual_pipeline_model_parallel_size": null,
|
| 347 |
+
"microbatch_group_size_per_vp_stage": null,
|
| 348 |
+
"pipeline_model_parallel_layout": null,
|
| 349 |
+
"expert_model_parallel_size": 8,
|
| 350 |
+
"expert_tensor_parallel_size": 1,
|
| 351 |
+
"report_to": [
|
| 352 |
+
"tensorboard"
|
| 353 |
+
],
|
| 354 |
+
"logging_steps": 1,
|
| 355 |
+
"tensorboard_dir": "/workspace/outputs/stage2_lora/runs",
|
| 356 |
+
"tensorboard_queue_size": 50,
|
| 357 |
+
"wandb_project": "megatron-swift",
|
| 358 |
+
"wandb_exp_name": null,
|
| 359 |
+
"swanlab_project": "megatron-swift",
|
| 360 |
+
"swanlab_exp_name": null,
|
| 361 |
+
"eval_iters": -1,
|
| 362 |
+
"eval_steps": 46,
|
| 363 |
+
"fp8_format": null,
|
| 364 |
+
"fp8_recipe": "delayed",
|
| 365 |
+
"fp8_param_gather": false,
|
| 366 |
+
"fp8_amax_history_len": 1024,
|
| 367 |
+
"fp8_amax_compute_algo": "max",
|
| 368 |
+
"fp4_format": null,
|
| 369 |
+
"fp4_recipe": "nvfp4",
|
| 370 |
+
"fp4_param_gather": false,
|
| 371 |
+
"fp16": false,
|
| 372 |
+
"bf16": true,
|
| 373 |
+
"apply_query_key_layer_scaling": false,
|
| 374 |
+
"attention_softmax_in_fp32": true,
|
| 375 |
+
"accumulate_allreduce_grads_in_fp32": true,
|
| 376 |
+
"moe_router_load_balancing_type": null,
|
| 377 |
+
"moe_router_dtype": "fp32",
|
| 378 |
+
"moe_token_dispatcher_type": null,
|
| 379 |
+
"moe_enable_deepep": false,
|
| 380 |
+
"moe_grouped_gemm": true,
|
| 381 |
+
"moe_permute_fusion": true,
|
| 382 |
+
"moe_aux_loss_coeff": 0.001,
|
| 383 |
+
"moe_z_loss_coeff": null,
|
| 384 |
+
"moe_shared_expert_overlap": true,
|
| 385 |
+
"moe_layer_recompute": false,
|
| 386 |
+
"moe_expert_capacity_factor": null,
|
| 387 |
+
"moe_pad_expert_input_to_capacity": false,
|
| 388 |
+
"moe_token_drop_policy": null,
|
| 389 |
+
"mtp_num_layers": 0,
|
| 390 |
+
"mtp_loss_scaling_factor": 0.1,
|
| 391 |
+
"mtp_decoder_input_detach": false,
|
| 392 |
+
"mtp_shared_weights": false,
|
| 393 |
+
"bridge_backend": "mcore-bridge",
|
| 394 |
+
"save_safetensors": true,
|
| 395 |
+
"ref_model": null,
|
| 396 |
+
"ref_adapters": [],
|
| 397 |
+
"merge_lora": false,
|
| 398 |
+
"max_shard_size": "5GB",
|
| 399 |
+
"vit_gradient_checkpointing": false,
|
| 400 |
+
"vit_gradient_checkpointing_kwargs": null,
|
| 401 |
+
"vit_attn_impl": null,
|
| 402 |
+
"vit_lr": null,
|
| 403 |
+
"aligner_lr": 2e-05,
|
| 404 |
+
"dsa_indexer_loss_coeff": 0.0,
|
| 405 |
+
"dsa_indexer_use_sparse_loss": false,
|
| 406 |
+
"apply_dsa_kernel_fusion": false,
|
| 407 |
+
"csa_dense_mode": false,
|
| 408 |
+
"use_fused_mhc": false,
|
| 409 |
+
"mhc_recompute_layer_num": null,
|
| 410 |
+
"megatron_extra_kwargs": {
|
| 411 |
+
"moe_router_bias_update_rate": 0.0
|
| 412 |
+
},
|
| 413 |
+
"language_model_only": false,
|
| 414 |
+
"check_model": true,
|
| 415 |
+
"apply_wd_to_qk_layernorm": false,
|
| 416 |
+
"linear_decoupled_in_proj": false,
|
| 417 |
+
"enable_dft_loss": false,
|
| 418 |
+
"enable_channel_loss": false,
|
| 419 |
+
"mrl_dims": null,
|
| 420 |
+
"save_strategy": "steps",
|
| 421 |
+
"callbacks": [
|
| 422 |
+
"dsv4vl_projector_checkpoint",
|
| 423 |
+
"tensorboard",
|
| 424 |
+
"print",
|
| 425 |
+
"default_flow",
|
| 426 |
+
"tensorboard"
|
| 427 |
+
],
|
| 428 |
+
"skip_megatron_init": false,
|
| 429 |
+
"add_version": false,
|
| 430 |
+
"create_checkpoint_symlink": false,
|
| 431 |
+
"swift_version": "4.5.0.dev0",
|
| 432 |
+
"ckpt_dir": null,
|
| 433 |
+
"rank": 0,
|
| 434 |
+
"global_world_size": 8,
|
| 435 |
+
"local_world_size": 8,
|
| 436 |
+
"model_suffix": "DSV4-VL-init",
|
| 437 |
+
"model_info": "ModelInfo(model_type='dsv4_vl', model_dir='/workspace/models/DSV4-VL-init', torch_dtype=torch.bfloat16, max_model_len=1048576, quant_method='fp8', quant_bits=None, rope_scaling=None, is_moe_model=True, is_multimodal=True, config=None, task_type='causal_lm', num_labels=None)",
|
| 438 |
+
"model_meta": "ModelMeta(model_type='dsv4_vl', model_groups=[ModelGroup(models=[Model(ms_model_id=None, hf_model_id=None, model_path='/workspace/models/DSV4-VL-init', ms_revision=None, hf_revision=None)], template=None, ignore_patterns=None, requires=None, tags=[])], loader=<class '_dsv4_vl_swift_impl.DSV4VLLoader'>, template='dsv4_vl', model_arch=MultiModelKeys(arch_name='dsv4_vl', embedding=None, module_list=None, lm_head=None, q_proj=None, k_proj=None, v_proj=None, o_proj=None, attention=None, mlp=None, down_proj=None, qkv_proj=None, qk_proj=None, qa_proj=None, qb_proj=None, kv_proj=None, kva_proj=None, kvb_proj=None, language_model=['language_model'], aligner=['multi_modal_projector'], vision_tower=['vision_tower'], generator=[]), mcore_model_type='dsv4_vl', architectures=['DSV4VLForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=[], tags=[])",
|
| 439 |
+
"model_dir": "/workspace/models/DSV4-VL-init",
|
| 440 |
+
"template_meta": "DeepseekV2_5TemplateMeta(template_type='dsv4_vl', prefix=['<|begin▁of▁sentence|>'], prompt=['<|User|>{{QUERY}}<|Assistant|>'], chat_sep=['<|end▁of▁sentence|>'], suffix=['<|end▁of▁sentence|>'], template_cls=<class '_dsv4_vl_swift_impl.DSV4VLTemplate'>, system_prefix=['<|begin▁of▁sentence|>{{SYSTEM}}'], default_system=None, auto_add_bos=False, stop_words=[], agent_template='deepseek_v4', is_thinking=True, thinking_prefix='<think>', non_thinking_prefix='</think>', history_thinking_prefix='</think>')",
|
| 441 |
+
"_val_dataset_exists": false,
|
| 442 |
+
"hub": "<class 'swift.hub.hub.MSHub'>",
|
| 443 |
+
"seq_length": 4096,
|
| 444 |
+
"is_multimodal": true,
|
| 445 |
+
"megatron_model_meta": "ModelMeta(model_type='dsv4_vl', model_types=['dsv4_vl'], bridge_cls=<class '_dsv4_vl_mcore_impl.DSV4VLBridge'>, visual_cls=<class '_dsv4_vl_mcore_impl.DSV4VLVit'>, is_multimodal=True, loader=<class '_dsv4_vl_mcore_impl.DSV4VLLoader'>)",
|
| 446 |
+
"fp8": null,
|
| 447 |
+
"fp4": null,
|
| 448 |
+
"world_size": 8,
|
| 449 |
+
"data_parallel_size": 8,
|
| 450 |
+
"num_microbatches": 16
|
| 451 |
+
}
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a12af93e332cf97ec0ea6a8ed96ec2b3b2d2146f23f4fdab1ddbd8b64bc63c88
|
| 3 |
+
size 583217
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b0d254769d7a313084a61c5d7635e25dde24f932a1b839dca837a57391a996d
|
| 3 |
+
size 301672061
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9b675ce45fe1f27d2cc1f36b0155184c381d252022f36bd6a19bc52a8f7010a
|
| 3 |
+
size 301330419
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b68e9892bc6f5f9977772f684c15af9681af857e6c8209e9ada63f507d0b0491
|
| 3 |
+
size 301331996
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ba4911ee752a68b373847dcad6f421ff74a3de33f6dc2a74d4dbe5155b3caae
|
| 3 |
+
size 301336727
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cb1366f3c97b612e2e4f33363dc62b306b7e19b2d953295501e975ef3ad57a7
|
| 3 |
+
size 301336727
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bb8354bff8c56d443559d169e3ede999cbfa1e311e4ffdc1f1ec5b5e469e780
|
| 3 |
+
size 301350920
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95e75399511261d8a92e0b15441dbece4368cc21dedc6c656dfce434bcfe2fe3
|
| 3 |
+
size 301346189
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7a4a4e1bff76025c609ba48779997d0c8c7eb35b17fd10bc48626f473b285b3
|
| 3 |
+
size 301275922
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/common.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5835cdf434d5f839971f9148f4fa8884c65769e9fc63206eb3c8c5a4d2c7fdbf
|
| 3 |
+
size 16999
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/iter_0005980/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"sharded_backend": "torch_dist", "sharded_backend_version": 1, "common_backend": "torch", "common_backend_version": 1}
|
stage2/stateful/checkpoint-0005980/checkpoint-5980/latest_checkpointed_iteration.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
5980
|
stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/metadata.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "dsv4vl-projector-v1",
|
| 3 |
+
"iteration": 5980,
|
| 4 |
+
"consumed_train_samples": 765440,
|
| 5 |
+
"framework_consumed_train_samples": 765312,
|
| 6 |
+
"base_hf_model": "/workspace/models/DSV4-VL-init",
|
| 7 |
+
"base_mcore_model": "/workspace/models/DSV4-VL-init-mcore-bf16",
|
| 8 |
+
"tensors": {
|
| 9 |
+
"chunk0.visual.multi_modal_projector.linear_1.weight": {
|
| 10 |
+
"shape": [
|
| 11 |
+
4096,
|
| 12 |
+
1152
|
| 13 |
+
],
|
| 14 |
+
"dtype": "torch.bfloat16"
|
| 15 |
+
},
|
| 16 |
+
"chunk0.visual.multi_modal_projector.linear_1.bias": {
|
| 17 |
+
"shape": [
|
| 18 |
+
4096
|
| 19 |
+
],
|
| 20 |
+
"dtype": "torch.bfloat16"
|
| 21 |
+
},
|
| 22 |
+
"chunk0.visual.multi_modal_projector.linear_2.weight": {
|
| 23 |
+
"shape": [
|
| 24 |
+
4096,
|
| 25 |
+
4096
|
| 26 |
+
],
|
| 27 |
+
"dtype": "torch.bfloat16"
|
| 28 |
+
},
|
| 29 |
+
"chunk0.visual.multi_modal_projector.linear_2.bias": {
|
| 30 |
+
"shape": [
|
| 31 |
+
4096
|
| 32 |
+
],
|
| 33 |
+
"dtype": "torch.bfloat16"
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
}
|
stage2/stateful/checkpoint-0005980/projector-checkpoints/checkpoint-0005980/projector.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e87cdaf000c584daae1c9b5fdcaf6fa6afd12ff56359ff3c311d300b31b14ba3
|
| 3 |
+
size 43008480
|
stage2/stateful/checkpoint-0005980/recovery_receipt.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "dsv4vl-stage2-recovery-checkpoint-v2",
|
| 3 |
+
"status": "PASS",
|
| 4 |
+
"checkpoint": "/workspace/outputs/stage2_lora/checkpoint-5980",
|
| 5 |
+
"iteration": 5980,
|
| 6 |
+
"global_batch_size": 128,
|
| 7 |
+
"consumed_train_samples": 765440,
|
| 8 |
+
"lora_tensors": 344,
|
| 9 |
+
"lora_extra_state_entries": 344,
|
| 10 |
+
"optimizer_metadata_entries": 6,
|
| 11 |
+
"rng_storage": "sharded",
|
| 12 |
+
"rng_ranks": 1,
|
| 13 |
+
"rng_metadata_keys": [
|
| 14 |
+
"rng_state/shard_0.0_1.1"
|
| 15 |
+
],
|
| 16 |
+
"files": [
|
| 17 |
+
{
|
| 18 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/latest_checkpointed_iteration.txt",
|
| 19 |
+
"bytes": 4,
|
| 20 |
+
"sha256": "0354fa127deb6e3b93672221f6ff949087c73ca67a45bc88ddcbde6042d40a8a"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/common.pt",
|
| 24 |
+
"bytes": 16999,
|
| 25 |
+
"sha256": "5835cdf434d5f839971f9148f4fa8884c65769e9fc63206eb3c8c5a4d2c7fdbf"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/.metadata",
|
| 29 |
+
"bytes": 583217,
|
| 30 |
+
"sha256": "a12af93e332cf97ec0ea6a8ed96ec2b3b2d2146f23f4fdab1ddbd8b64bc63c88"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__0_0.distcp",
|
| 34 |
+
"bytes": 301672061,
|
| 35 |
+
"sha256": "9b0d254769d7a313084a61c5d7635e25dde24f932a1b839dca837a57391a996d"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__1_0.distcp",
|
| 39 |
+
"bytes": 301330419,
|
| 40 |
+
"sha256": "e9b675ce45fe1f27d2cc1f36b0155184c381d252022f36bd6a19bc52a8f7010a"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__2_0.distcp",
|
| 44 |
+
"bytes": 301331996,
|
| 45 |
+
"sha256": "b68e9892bc6f5f9977772f684c15af9681af857e6c8209e9ada63f507d0b0491"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__3_0.distcp",
|
| 49 |
+
"bytes": 301336727,
|
| 50 |
+
"sha256": "6ba4911ee752a68b373847dcad6f421ff74a3de33f6dc2a74d4dbe5155b3caae"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__4_0.distcp",
|
| 54 |
+
"bytes": 301336727,
|
| 55 |
+
"sha256": "8cb1366f3c97b612e2e4f33363dc62b306b7e19b2d953295501e975ef3ad57a7"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__5_0.distcp",
|
| 59 |
+
"bytes": 301350920,
|
| 60 |
+
"sha256": "0bb8354bff8c56d443559d169e3ede999cbfa1e311e4ffdc1f1ec5b5e469e780"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__6_0.distcp",
|
| 64 |
+
"bytes": 301346189,
|
| 65 |
+
"sha256": "95e75399511261d8a92e0b15441dbece4368cc21dedc6c656dfce434bcfe2fe3"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-5980/iter_0005980/__7_0.distcp",
|
| 69 |
+
"bytes": 301275922,
|
| 70 |
+
"sha256": "a7a4a4e1bff76025c609ba48779997d0c8c7eb35b17fd10bc48626f473b285b3"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
}
|