nlp-research-repo-package-installment
Align Python version and repo-declared dependencies (requirements.txt / environment.yml) before installing packages for NLP research code reproduction.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 7
01 前言 Front Matter
- name
- nlp-research-repo-package-installment
- version
- 1.0
- description
- Align Python version and repo-declared dependencies (requirements.txt / environment.yml) before installing packages for NLP research code reproduction.
03 SKILL.md 正文
NLP Research Repo Package Installment
When reproducing an NLP research repo, always align the environment to the repo’s declared dependencies first. Most failures come from Python version mismatch or installing packages without following requirements.txt / environment.yml.
What to do (must run before any install)
- Read the repo dependency files
- Prefer
environment.yml/environment.yaml(often pins Python + channels + non-pip deps) - Otherwise use
requirements.txt(pip deps) - If both exist, treat
environment.ymlas the base,requirements.txtas supplemental unless README says otherwise
- Log the current environment (Python version is critical)
Write/root/python_int.txtcontaining:
python -VV(required; Python version is often the root cause)python -m pip --versionpython -m pip freeze
- Compare & decide
-
If the repo expects a specific Python major/minor and the current Python does not match, it’s usually best to set up a matching environment before installing dependencies. Example: set up a fresh Python 3.11 environment (Docker / Ubuntu) with uv # Install uv apt-get update apt-get install -y --no-install-recommends curl ca-certificates rm -rf /var/lib/apt/lists/* curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh export PATH="/root/.local/bin:$PATH"
# Install Python + create a venv uv python install 3.11.8 uv venv --python 3.11.8 /opt/py311 # Use the new Python for installs/runs /opt/py311/bin/python -VV /opt/py311/bin/python -m pip install -U pip setuptools wheel -
Prefer installing from the repo’s dependency files (avoid random upgrades), then run a quick import/smoke test.
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.