setup_repo_environment
Aligns the local environment with the repository's requirements by checking for dependency files, installing build-essential tools for complex packages like DeepSpeed, and logging environment metadata.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- setup_repo_environment
- description
- Aligns the local environment with the repository's requirements by checking for dependency files, installing build-essential tools for complex packages like DeepSpeed, and logging environment metadata.
03 SKILL.md 正文
- Identify Dependencies: Check the
/root/SimPOdirectory forenvironment.yml,requirements.txt, orpyproject.toml. - Align Python Version: If a specific version is required by
environment.yml, attempt to use that version. - Install Build Tools: Ensure the system has tools required for compiling C++/CUDA extensions (common in NLP repos for
deepspeedorflash-attn):apt-get update && apt-get install -y build-essential libaio-dev
- Install Packages:
- If
requirements.txtexists:pip install -r requirements.txt. - Ensure
torch,numpy, andtransformersare compatible with the versions mentioned in the repo.
- If
- Log Environment Info:
- Run
python -VV > /root/python_info.txt - Run
python -m pip freeze >> /root/python_info.txt - This ensures the exact state used for the loss computation is recorded for reproducibility.
- Run
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.