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 1380
Browse files- .gitattributes +9 -0
- recovery_manifest.json +86 -1
- stage2/stateful/checkpoint-0001380/checkpoint-1380/adapter_model.safetensors +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/args.json +451 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/.metadata +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__0_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__1_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__2_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__3_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__4_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__5_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__6_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__7_0.distcp +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/common.pt +3 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/metadata.json +1 -0
- stage2/stateful/checkpoint-0001380/checkpoint-1380/latest_checkpointed_iteration.txt +1 -0
- stage2/stateful/checkpoint-0001380/projector-checkpoints/checkpoint-0001380/metadata.json +36 -0
- stage2/stateful/checkpoint-0001380/projector-checkpoints/checkpoint-0001380/projector.safetensors +3 -0
- stage2/stateful/checkpoint-0001380/recovery_receipt.json +73 -0
.gitattributes
CHANGED
|
@@ -60,3 +60,12 @@ stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__4_0.distcp filt
|
|
| 60 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 61 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 62 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 61 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 62 |
stage2/stateful/checkpoint-0000920/checkpoint-920/iter_0000920/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
recovery_manifest.json
CHANGED
|
@@ -489,7 +489,92 @@
|
|
| 489 |
"path": "stage2/stateful/checkpoint-0000920/recovery_receipt.json",
|
| 490 |
"bytes": 2748,
|
| 491 |
"sha256": "e0c549e7208c8914c55519e36baa122c125d3d139de7154078879f628a4b7f64"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 492 |
}
|
| 493 |
],
|
| 494 |
-
"updated_at": "2026-08-
|
| 495 |
}
|
|
|
|
| 489 |
"path": "stage2/stateful/checkpoint-0000920/recovery_receipt.json",
|
| 490 |
"bytes": 2748,
|
| 491 |
"sha256": "e0c549e7208c8914c55519e36baa122c125d3d139de7154078879f628a4b7f64"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/adapter_model.safetensors",
|
| 495 |
+
"bytes": 307219032,
|
| 496 |
+
"sha256": "da42ee7a5b34e5f41167cc5633952838c6688ee9db880ae480ec0f84883f138b"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/args.json",
|
| 500 |
+
"bytes": 14952,
|
| 501 |
+
"sha256": "eaf7b14ff4b3893b5ad83e42596727507c80ffc9c2eb5d5abe46490de02a87af"
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/.metadata",
|
| 505 |
+
"bytes": 583217,
|
| 506 |
+
"sha256": "3fe607974fddaa819bc3ed5ca4105e9d66556a617129a4015a85110fa4abed99"
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__0_0.distcp",
|
| 510 |
+
"bytes": 301672061,
|
| 511 |
+
"sha256": "59bfda918a22dd5d4693f39a5d3392a6d1cf5ea52597c38739954d667ed3d13d"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__1_0.distcp",
|
| 515 |
+
"bytes": 301330419,
|
| 516 |
+
"sha256": "cfd2dabf3d9de83d2b14752f7ae02a2798bfd22bda31da44018f4d9d75b33871"
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__2_0.distcp",
|
| 520 |
+
"bytes": 301331996,
|
| 521 |
+
"sha256": "ef3b412382e862ea802327bdbbcc560af28c8c90071ccca52e0773274da2e554"
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__3_0.distcp",
|
| 525 |
+
"bytes": 301336727,
|
| 526 |
+
"sha256": "554319113a5fce3d61a3453bac73e67e354125793931796811e96c728def3b68"
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__4_0.distcp",
|
| 530 |
+
"bytes": 301336727,
|
| 531 |
+
"sha256": "a5bdc73ac8b8167c49887dcc9a9813776ebd66037a2ba5b3dffe400156546e65"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__5_0.distcp",
|
| 535 |
+
"bytes": 301350920,
|
| 536 |
+
"sha256": "c5daa16b6b5fe7d5e3aedf557b7c5b2430f280cccfb478b3e6d07451ac57814f"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__6_0.distcp",
|
| 540 |
+
"bytes": 301346189,
|
| 541 |
+
"sha256": "49cb12b8d7fa58822a0fe5edc3737e7b4fdc19e02bd7a3e15c50d838076e31e2"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__7_0.distcp",
|
| 545 |
+
"bytes": 301275922,
|
| 546 |
+
"sha256": "807a3d6e639dde7f4d123c563ebe1d06fc9fd93bb927dda3006d3d6532e5307c"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/common.pt",
|
| 550 |
+
"bytes": 16999,
|
| 551 |
+
"sha256": "6a0f83b358f7dd0d5043ec676134d99707a4ff05ccc33fb02125d8a05fd1b61f"
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/metadata.json",
|
| 555 |
+
"bytes": 119,
|
| 556 |
+
"sha256": "9817072de14c715c70e8435a7fee90bac30abaf6885fc53ade6fe88babeef851"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"path": "stage2/stateful/checkpoint-0001380/checkpoint-1380/latest_checkpointed_iteration.txt",
|
| 560 |
+
"bytes": 4,
|
| 561 |
+
"sha256": "aecef364029f6f3f008b4f2b87b9a1c27e596a74062b83cad24fab73cce4f1f0"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"path": "stage2/stateful/checkpoint-0001380/projector-checkpoints/checkpoint-0001380/metadata.json",
|
| 565 |
+
"bytes": 860,
|
| 566 |
+
"sha256": "793748d127380778a91c4ac0ea14fb55f89cdb0387c9075d409e9b8cc6d0df3e"
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"path": "stage2/stateful/checkpoint-0001380/projector-checkpoints/checkpoint-0001380/projector.safetensors",
|
| 570 |
+
"bytes": 43008480,
|
| 571 |
+
"sha256": "d64c54d25768c7bd1691134315dc2d4eb90d3632523b9681a1eb5f106a5b9d7a"
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"path": "stage2/stateful/checkpoint-0001380/recovery_receipt.json",
|
| 575 |
+
"bytes": 2761,
|
| 576 |
+
"sha256": "fd7498059ad2d6da206b85a59370b5cdf71219a7ab274a6cc76351ee6d6acc8f"
|
| 577 |
}
|
| 578 |
],
|
| 579 |
+
"updated_at": "2026-08-06T23:49:48Z"
|
| 580 |
}
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da42ee7a5b34e5f41167cc5633952838c6688ee9db880ae480ec0f84883f138b
|
| 3 |
+
size 307219032
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/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-0001380/checkpoint-1380/iter_0001380/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fe607974fddaa819bc3ed5ca4105e9d66556a617129a4015a85110fa4abed99
|
| 3 |
+
size 583217
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59bfda918a22dd5d4693f39a5d3392a6d1cf5ea52597c38739954d667ed3d13d
|
| 3 |
+
size 301672061
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfd2dabf3d9de83d2b14752f7ae02a2798bfd22bda31da44018f4d9d75b33871
|
| 3 |
+
size 301330419
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef3b412382e862ea802327bdbbcc560af28c8c90071ccca52e0773274da2e554
|
| 3 |
+
size 301331996
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:554319113a5fce3d61a3453bac73e67e354125793931796811e96c728def3b68
|
| 3 |
+
size 301336727
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5bdc73ac8b8167c49887dcc9a9813776ebd66037a2ba5b3dffe400156546e65
|
| 3 |
+
size 301336727
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5daa16b6b5fe7d5e3aedf557b7c5b2430f280cccfb478b3e6d07451ac57814f
|
| 3 |
+
size 301350920
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49cb12b8d7fa58822a0fe5edc3737e7b4fdc19e02bd7a3e15c50d838076e31e2
|
| 3 |
+
size 301346189
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:807a3d6e639dde7f4d123c563ebe1d06fc9fd93bb927dda3006d3d6532e5307c
|
| 3 |
+
size 301275922
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/common.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a0f83b358f7dd0d5043ec676134d99707a4ff05ccc33fb02125d8a05fd1b61f
|
| 3 |
+
size 16999
|
stage2/stateful/checkpoint-0001380/checkpoint-1380/iter_0001380/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-0001380/checkpoint-1380/latest_checkpointed_iteration.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1380
|
stage2/stateful/checkpoint-0001380/projector-checkpoints/checkpoint-0001380/metadata.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "dsv4vl-projector-v1",
|
| 3 |
+
"iteration": 1380,
|
| 4 |
+
"consumed_train_samples": 176640,
|
| 5 |
+
"framework_consumed_train_samples": 176512,
|
| 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-0001380/projector-checkpoints/checkpoint-0001380/projector.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d64c54d25768c7bd1691134315dc2d4eb90d3632523b9681a1eb5f106a5b9d7a
|
| 3 |
+
size 43008480
|
stage2/stateful/checkpoint-0001380/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-1380",
|
| 5 |
+
"iteration": 1380,
|
| 6 |
+
"global_batch_size": 128,
|
| 7 |
+
"consumed_train_samples": 176640,
|
| 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-1380/latest_checkpointed_iteration.txt",
|
| 19 |
+
"bytes": 4,
|
| 20 |
+
"sha256": "aecef364029f6f3f008b4f2b87b9a1c27e596a74062b83cad24fab73cce4f1f0"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/common.pt",
|
| 24 |
+
"bytes": 16999,
|
| 25 |
+
"sha256": "6a0f83b358f7dd0d5043ec676134d99707a4ff05ccc33fb02125d8a05fd1b61f"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/.metadata",
|
| 29 |
+
"bytes": 583217,
|
| 30 |
+
"sha256": "3fe607974fddaa819bc3ed5ca4105e9d66556a617129a4015a85110fa4abed99"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__0_0.distcp",
|
| 34 |
+
"bytes": 301672061,
|
| 35 |
+
"sha256": "59bfda918a22dd5d4693f39a5d3392a6d1cf5ea52597c38739954d667ed3d13d"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__1_0.distcp",
|
| 39 |
+
"bytes": 301330419,
|
| 40 |
+
"sha256": "cfd2dabf3d9de83d2b14752f7ae02a2798bfd22bda31da44018f4d9d75b33871"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__2_0.distcp",
|
| 44 |
+
"bytes": 301331996,
|
| 45 |
+
"sha256": "ef3b412382e862ea802327bdbbcc560af28c8c90071ccca52e0773274da2e554"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__3_0.distcp",
|
| 49 |
+
"bytes": 301336727,
|
| 50 |
+
"sha256": "554319113a5fce3d61a3453bac73e67e354125793931796811e96c728def3b68"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__4_0.distcp",
|
| 54 |
+
"bytes": 301336727,
|
| 55 |
+
"sha256": "a5bdc73ac8b8167c49887dcc9a9813776ebd66037a2ba5b3dffe400156546e65"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__5_0.distcp",
|
| 59 |
+
"bytes": 301350920,
|
| 60 |
+
"sha256": "c5daa16b6b5fe7d5e3aedf557b7c5b2430f280cccfb478b3e6d07451ac57814f"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__6_0.distcp",
|
| 64 |
+
"bytes": 301346189,
|
| 65 |
+
"sha256": "49cb12b8d7fa58822a0fe5edc3737e7b4fdc19e02bd7a3e15c50d838076e31e2"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"path": "/workspace/outputs/stage2_lora/checkpoint-1380/iter_0001380/__7_0.distcp",
|
| 69 |
+
"bytes": 301275922,
|
| 70 |
+
"sha256": "807a3d6e639dde7f4d123c563ebe1d06fc9fd93bb927dda3006d3d6532e5307c"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
}
|