davanstrien HF Staff commited on
Commit
74f3d51
·
verified ·
1 Parent(s): 6bf346a

Sync from GitHub via hub-sync

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. marlin-caption.py +7 -3
README.md CHANGED
@@ -22,14 +22,14 @@ Scripts run directly from their Hub URL — no clone or local checkout needed:
22
 
23
  ```bash
24
  # Caption every video in a bucket: dense scene captions + timestamped events
25
- hf jobs uv run --image vllm/vllm-openai:latest --flavor a10g-small \
26
  -s HF_TOKEN \
27
  -v hf://buckets/user/my-videos:/input:ro \
28
  https://huggingface.co/datasets/uv-scripts/video/raw/main/marlin-caption.py \
29
  /input hf://buckets/user/my-videos/captions
30
 
31
  # Temporal grounding: when does an event happen?
32
- hf jobs uv run --image vllm/vllm-openai:latest --flavor a10g-small \
33
  -s HF_TOKEN \
34
  -v hf://buckets/user/my-videos:/input:ro \
35
  https://huggingface.co/datasets/uv-scripts/video/raw/main/marlin-caption.py \
 
22
 
23
  ```bash
24
  # Caption every video in a bucket: dense scene captions + timestamped events
25
+ hf jobs uv run --image vllm/vllm-openai:v0.32.0 --flavor a10g-small \
26
  -s HF_TOKEN \
27
  -v hf://buckets/user/my-videos:/input:ro \
28
  https://huggingface.co/datasets/uv-scripts/video/raw/main/marlin-caption.py \
29
  /input hf://buckets/user/my-videos/captions
30
 
31
  # Temporal grounding: when does an event happen?
32
+ hf jobs uv run --image vllm/vllm-openai:v0.32.0 --flavor a10g-small \
33
  -s HF_TOKEN \
34
  -v hf://buckets/user/my-videos:/input:ro \
35
  https://huggingface.co/datasets/uv-scripts/video/raw/main/marlin-caption.py \
marlin-caption.py CHANGED
@@ -2,11 +2,15 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "saturate[hf]==0.3.0",
5
- # "vllm",
6
  # "qwen-vl-utils",
7
  # ]
8
  #
9
  # [tool.hf-jobs]
 
 
 
 
 
10
  # image = "vllm/vllm-openai:v0.32.0"
11
  # python = "/usr/bin/python3"
12
  # env = { PYTHONPATH = "/usr/local/lib/python3.12/dist-packages" }
@@ -52,8 +56,8 @@ chunks where the event never occurs (the model has no "not present" answer). Tre
52
  spans as a shortlist to rank or verify downstream — when the event is really there,
53
  they are precise (matches caption-mode events to the half-second in testing).
54
 
55
- # Local machine with a CUDA GPU
56
- uv run marlin-caption.py ./videos ./captions-out
57
 
58
  Memory safety (learned the hard way — defaults encode a measured config):
59
  * --mm-processor-cache-gb 0 is passed to vLLM: its multimodal cache grows without
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "saturate[hf]==0.3.0",
 
5
  # "qwen-vl-utils",
6
  # ]
7
  #
8
  # [tool.hf-jobs]
9
+ # # vllm comes from the image: saturate starts `vllm serve` from PATH. Listing vllm above puts a
10
+ # # newer PyPI vllm CLI first on PATH, and its flashinfer-python dependency (0.7.2.post1) ships a
11
+ # # top-level b12x module that the image lacks. The image's vllm (via PYTHONPATH) imports it and
12
+ # # crashes (missing flashinfer/experimental/b12x/_api.py). Seen on v0.32.0 (2026-11-05);
13
+ # # re-test before moving the tag. Local GPU: uv run --with vllm.
14
  # image = "vllm/vllm-openai:v0.32.0"
15
  # python = "/usr/bin/python3"
16
  # env = { PYTHONPATH = "/usr/local/lib/python3.12/dist-packages" }
 
56
  spans as a shortlist to rank or verify downstream — when the event is really there,
57
  they are precise (matches caption-mode events to the half-second in testing).
58
 
59
+ # Local machine with a CUDA GPU (the header leaves vllm to the HF Jobs image)
60
+ uv run --with vllm marlin-caption.py ./videos ./captions-out
61
 
62
  Memory safety (learned the hard way — defaults encode a measured config):
63
  * --mm-processor-cache-gb 0 is passed to vLLM: its multimodal cache grows without