Instructions to use XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Download src/cgvm/commit.py from XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600/resolve/main/src/cgvm/commit.py
- Command line
-
hf download hf://XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600/src/cgvm/commit.py
-
curl -L -o commit.py https://huggingface.co/XiangnanW/CGVM-R2.6-Qwen3VL-8B-step600/resolve/main/src/cgvm/commit.py
580 Bytes
| """代码版本号:优先读 CGVM_CODE_COMMIT,其次 git,最后 unknown。 | |
| 集群作业把代码打成 tar 后没有 .git,直接 `git rev-parse HEAD` 会让 Stage0/评测 | |
| 在执行任何推理之前就崩掉。 | |
| """ | |
| import os | |
| import subprocess | |
| def code_commit(root): | |
| env = os.environ.get('CGVM_CODE_COMMIT') | |
| if env: | |
| return env | |
| try: | |
| return subprocess.check_output(['git', '-C', str(root), 'rev-parse', 'HEAD'], | |
| text=True, stderr=subprocess.DEVNULL).strip() | |
| except Exception: | |
| return 'unknown' | |