Run this model with HF Jobs

Run XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
CGVM-R2.6-Qwen3VL-8B-step600 / src /scripts /apply_sample332_recovery.py
XiangnanW's picture
Upload CGVM R2.6 step-000600 checkpoint, R2.6 source bundle (cgvm-r26-src-v1.tar.gz), and 4-round audit report
4ad9219 verified
Raw History Blame Contribute Delete
3.19 kB
#!/usr/bin/env python3
"""核验真实恢复证据后统一登记三组来源路径;不覆盖官方损坏原件。"""
import json
from pathlib import Path
import sys
import time
ROOT=Path(__file__).resolve().parents[1]
sys.path.insert(0,str(ROOT/'scripts'))
from download_assets import atomic,sha
def main():
proof_path=ROOT/'provenance/sample332_restored_decode_audit.json'
proof=json.loads(proof_path.read_text())
assert proof['passed'] and proof['all_native_PTS_exactly_equal_to_official_clip']
assert proof['original_MEMO_Full_FrameExtractor_decode_passed'] and proof['sampled_frames']==607
assert not proof['reencoding'] and not proof['synthesized_frames'] and not proof['questions_or_answers_changed']
assert sha(ROOT/proof['original_official_path'])==proof['original_official_sha256']
assert sha(ROOT/proof['recovered_path'])==proof['recovered_sha256']
config_path=ROOT/'configs/media_recovery.frozen.json'
source_path=ROOT/'manifests/eval_sources.streamingbench.json'
inventory_path=ROOT/'provenance/eval_media_inventory.json'
sources=json.loads(source_path.read_text());inventory=json.loads(inventory_path.read_text())
key='sample_332_real.mp4';inventory_key='streaming/'+key
config=json.loads(config_path.read_text()) if config_path.exists() else dict(frozen=True,recoveries={})
if key not in config['recoveries']:
config['recoveries'][key]=dict(benchmark='streamingbench',registered_at=time.time(),
original_source_entry=sources['sources'][key],original_inventory_entry=inventory[inventory_key],
source_manifest_before_sha256=sha(source_path),inventory_before_sha256=sha(inventory_path),
recovered_path=proof['recovered_path'],recovered_sha256=proof['recovered_sha256'],
proof_path=str(proof_path.relative_to(ROOT)),proof_sha256=sha(proof_path),
public_source=proof['public_source'],scope='identical_common_media_for_R0_R1_R2_all_5_questions_retained',
limitation=proof['boundary'])
row=config['recoveries'][key]
assert row['recovered_sha256']==proof['recovered_sha256'] and row['proof_sha256']==sha(proof_path)
sources['sources'][key].update(path=proof['recovered_path'],media_sha256=proof['recovered_sha256'],
storage_bytes=proof['recovered_bytes'],media_recovery='configs/media_recovery.frozen.json',
original_published_media_sha256=proof['original_official_sha256'])
inventory[inventory_key].update(path=proof['recovered_path'],sha256=proof['recovered_sha256'],
bytes=proof['recovered_bytes'],media_recovery='configs/media_recovery.frozen.json',
original_published_path=proof['original_official_path'],original_published_sha256=proof['original_official_sha256'])
atomic(config_path,config);atomic(source_path,sources);atomic(inventory_path,inventory)
print(json.dumps(dict(applied=True,source_video=key,original_preserved=True,
active_R0_workers_already_hold_original_paths='infrastructure_failures_must_be_recovered_after_current_pass',
source_manifest_sha256=sha(source_path),inventory_sha256=sha(inventory_path))),flush=True)
if __name__=='__main__':main()