Super-squash branch 'main' using huggingface_hub

Browse files

Co-authored-by: mli0603 <mli0603@users.noreply.huggingface.co>
Co-authored-by: tangyue0820 <tangyue0820@users.noreply.huggingface.co>
Co-authored-by: CYChenv <CYChenv@users.noreply.huggingface.co>
Co-authored-by: ybalaji <ybalaji@users.noreply.huggingface.co>
Co-authored-by: zekunhao <zekunhao@users.noreply.huggingface.co>
Co-authored-by: harrim-nv <harrim-nv@users.noreply.huggingface.co>
Co-authored-by: liang1225 <liang1225@users.noreply.huggingface.co>
Co-authored-by: sgururani <sgururani@users.noreply.huggingface.co>
Co-authored-by: HaotianZhangDIR <HaotianZhangDIR@users.noreply.huggingface.co>
Co-authored-by: mbalaNV <mbalaNV@users.noreply.huggingface.co>
Co-authored-by: nv-spectralflight <nv-spectralflight@users.noreply.huggingface.co>
Co-authored-by: OmarNvidia <OmarNvidia@users.noreply.huggingface.co>

Files changed (3) hide show
  1. README.md +65 -45
  2. sound_tokenizer.ckpt +3 -0
  3. sound_tokenizer.json +42 -0
README.md CHANGED
@@ -10,54 +10,11 @@ tags:
10
  - cosmos3
11
  - vllm
12
  - vllm-omni
 
 
13
  - diffusers
14
  - text, image, video, audio, and action generation
15
  - omnimodel
16
- countDownloads:
17
- - checkpoint.json
18
- - config.json
19
- - generation_config.json
20
- - model.safetensors.index.json
21
- - model_index.json
22
- - tokenizer.json
23
- - tokenizer_config.json
24
- - sound_tokenizer/config.json
25
- - sound_tokenizer/diffusion_pytorch_model.safetensors
26
- - text_tokenizer/tokenizer.json
27
- - text_tokenizer/tokenizer_config.json
28
- - transformer/config.json
29
- - transformer/diffusion_pytorch_model-00001-of-00027.safetensors
30
- - transformer/diffusion_pytorch_model-00002-of-00027.safetensors
31
- - transformer/diffusion_pytorch_model-00003-of-00027.safetensors
32
- - transformer/diffusion_pytorch_model-00004-of-00027.safetensors
33
- - transformer/diffusion_pytorch_model-00005-of-00027.safetensors
34
- - transformer/diffusion_pytorch_model-00006-of-00027.safetensors
35
- - transformer/diffusion_pytorch_model-00007-of-00027.safetensors
36
- - transformer/diffusion_pytorch_model-00008-of-00027.safetensors
37
- - transformer/diffusion_pytorch_model-00009-of-00027.safetensors
38
- - transformer/diffusion_pytorch_model-00010-of-00027.safetensors
39
- - transformer/diffusion_pytorch_model-00011-of-00027.safetensors
40
- - transformer/diffusion_pytorch_model-00012-of-00027.safetensors
41
- - transformer/diffusion_pytorch_model-00013-of-00027.safetensors
42
- - transformer/diffusion_pytorch_model-00014-of-00027.safetensors
43
- - transformer/diffusion_pytorch_model-00015-of-00027.safetensors
44
- - transformer/diffusion_pytorch_model-00016-of-00027.safetensors
45
- - transformer/diffusion_pytorch_model-00017-of-00027.safetensors
46
- - transformer/diffusion_pytorch_model-00018-of-00027.safetensors
47
- - transformer/diffusion_pytorch_model-00019-of-00027.safetensors
48
- - transformer/diffusion_pytorch_model-00020-of-00027.safetensors
49
- - transformer/diffusion_pytorch_model-00021-of-00027.safetensors
50
- - transformer/diffusion_pytorch_model-00022-of-00027.safetensors
51
- - transformer/diffusion_pytorch_model-00023-of-00027.safetensors
52
- - transformer/diffusion_pytorch_model-00024-of-00027.safetensors
53
- - transformer/diffusion_pytorch_model-00025-of-00027.safetensors
54
- - transformer/diffusion_pytorch_model-00026-of-00027.safetensors
55
- - transformer/diffusion_pytorch_model-00027-of-00027.safetensors
56
- - transformer/diffusion_pytorch_model.safetensors.index.json
57
- - vae/config.json
58
- - vae/diffusion_pytorch_model.safetensors
59
- - vision_encoder/config.json
60
- - vision_encoder/model.safetensors
61
  ---
62
 
63
  # **Cosmos 3: Omnimodal World Models for Physical AI**
@@ -966,6 +923,69 @@ Example output:
966
 
967
  <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Super/resolve/main/assets/example_t2v_diffusers_output.mp4"></video>
968
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
969
  ## Limitations
970
 
971
  Cosmos3 may produce imperfect outputs in challenging scenarios. Generation artifacts include temporal inconsistency, unstable camera or object motion, imprecise physical interactions, inaccurate audio-video synchronization, and action-state drift — especially in long-horizon or high-resolution outputs. Reasoning may also be incorrect: object states, causal relationships, spatial geometry, temporal ordering, agent intent, and future outcomes can be misinferred, and complex or long-context inputs may yield hallucinated entities, inconsistent interpretations, or implausible predictions. Because the model lacks an explicit physics simulator, 3D geometry, 4D space-time evolution, object permanence, contact dynamics, and physical laws are only approximated — producing artifacts such as disappearing or morphing objects, unrealistic collisions, and physically implausible motions. Quality further degrades in out-of-distribution environments, safety-critical edge cases, and domains underrepresented in training.
 
10
  - cosmos3
11
  - vllm
12
  - vllm-omni
13
+ - sglang
14
+ - sglang-diffusion
15
  - diffusers
16
  - text, image, video, audio, and action generation
17
  - omnimodel
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
  # **Cosmos 3: Omnimodal World Models for Physical AI**
 
923
 
924
  <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Super/resolve/main/assets/example_t2v_diffusers_output.mp4"></video>
925
 
926
+ ### SGLang
927
+
928
+ SGLang-Diffusion can serve `nvidia/Cosmos3-Super` through OpenAI-compatible image and video endpoints. Install SGLang from the main branch with diffusion dependencies, then start the server:
929
+
930
+ ```bash
931
+ git clone --branch main https://github.com/sgl-project/sglang.git
932
+ cd sglang
933
+ pip install -e "python[diffusion]"
934
+ pip install "cosmos-guardrail==0.3.1"
935
+
936
+ sglang serve \
937
+ --model-path nvidia/Cosmos3-Super \
938
+ --num-gpus 4
939
+ ```
940
+
941
+ Cosmos 3 support in SGLang Diffusion currently requires the SGLang main branch. Switch to a stable SGLang release once Cosmos 3 support is included there.
942
+
943
+ For the video-specialized checkpoint:
944
+
945
+ ```bash
946
+ sglang serve \
947
+ --model-path nvidia/Cosmos3-Super-Image2Video \
948
+ --num-gpus 4
949
+ ```
950
+
951
+ Supported SGLang endpoints:
952
+
953
+ | Mode | Endpoint | Notes |
954
+ | --- | --- | --- |
955
+ | Text to image | `POST /v1/images/generations` | Returns base64 image data by default |
956
+ | Text to video | `POST /v1/videos` | Creates an async job; poll `GET /v1/videos/{id}` and download `/content` |
957
+ | Image to video | `POST /v1/videos` | Upload the conditioning image with `input_reference` |
958
+
959
+ Example text-to-video request:
960
+
961
+ ```bash
962
+ job_id=$(curl -sS -X POST http://localhost:30000/v1/videos \
963
+ --form-string "prompt=A small warehouse robot moves a blue box across a clean floor." \
964
+ --form-string "negative_prompt=blurry, distorted, low quality" \
965
+ --form-string "size=1280x720" \
966
+ --form-string "num_frames=81" \
967
+ --form-string "fps=24" \
968
+ --form-string "num_inference_steps=35" \
969
+ --form-string "guidance_scale=4.0" \
970
+ --form-string "flow_shift=10.0" \
971
+ --form-string "seed=42" \
972
+ --form-string 'extra_params={"guardrails":true,"use_resolution_template":false,"use_duration_template":false}' \
973
+ | python -c 'import json, sys; print(json.load(sys.stdin)["id"])')
974
+
975
+ while true; do
976
+ status=$(curl -sS "http://localhost:30000/v1/videos/${job_id}" \
977
+ | python -c 'import json, sys; print(json.load(sys.stdin)["status"])')
978
+ [ "$status" = "completed" ] && break
979
+ [ "$status" = "failed" ] && exit 1
980
+ sleep 1
981
+ done
982
+
983
+ curl -sS -L "http://localhost:30000/v1/videos/${job_id}/content" \
984
+ -o cosmos3_super_t2v_output.mp4
985
+ ```
986
+
987
+ Video-to-video, video-with-sound, and action generation are not supported by SGLang yet.
988
+
989
  ## Limitations
990
 
991
  Cosmos3 may produce imperfect outputs in challenging scenarios. Generation artifacts include temporal inconsistency, unstable camera or object motion, imprecise physical interactions, inaccurate audio-video synchronization, and action-state drift — especially in long-horizon or high-resolution outputs. Reasoning may also be incorrect: object states, causal relationships, spatial geometry, temporal ordering, agent intent, and future outcomes can be misinferred, and complex or long-context inputs may yield hallucinated entities, inconsistent interpretations, or implausible predictions. Because the model lacks an explicit physics simulator, 3D geometry, 4D space-time evolution, object permanence, contact dynamics, and physical laws are only approximated — producing artifacts such as disappearing or morphing objects, unrealistic collisions, and physically implausible motions. Quality further degrades in out-of-distribution environments, safety-critical edge cases, and domains underrepresented in training.
sound_tokenizer.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6daeb68a219f3e86c0918f616d78b9ebf073f3d700df63ff1c02d214c081d72d
3
+ size 1985246007
sound_tokenizer.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "autoencoder_v2",
3
+ "sampling_rate": 48000,
4
+ "stereo": true,
5
+ "use_wav_as_input": true,
6
+ "normalize_volume": true,
7
+ "hop_size": 1920,
8
+ "input_channels": 1,
9
+ "enc_type": "spec_convnext",
10
+ "enc_dim": 192,
11
+ "enc_intermediate_dim": 768,
12
+ "enc_num_layers": 12,
13
+ "enc_num_blocks": 2,
14
+ "enc_n_fft": 64,
15
+ "enc_hop_length": 16,
16
+ "enc_latent_dim": 128,
17
+ "enc_c_mults": [1, 2, 4],
18
+ "enc_strides": [4, 5, 6],
19
+ "enc_identity_init": false,
20
+ "enc_use_snake": true,
21
+ "dec_type": "oobleck",
22
+ "dec_dim": 320,
23
+ "dec_c_mults": [1, 2, 4, 8, 16],
24
+ "dec_strides": [2, 4, 5, 6, 8],
25
+ "dec_use_snake": true,
26
+ "dec_final_tanh": false,
27
+ "dec_out_channels": 2,
28
+ "dec_anti_aliasing": false,
29
+ "dec_use_nearest_upsample": false,
30
+ "dec_use_tanh_at_final": false,
31
+ "bottleneck_type": "vae",
32
+ "bottleneck": {"type": "vae"},
33
+ "activation": "snakebeta",
34
+ "snake_logscale": true,
35
+ "anti_aliasing": false,
36
+ "use_cuda_kernel": false,
37
+ "causal": false,
38
+ "padding_mode": "zeros",
39
+ "vocoder_input_dim": 64,
40
+ "latent_mean": null,
41
+ "latent_std": null
42
+ }