AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Nlp Project Setup

skill-cxcscmu-skilllearnbench-nlp-project-setup · by cxcscmu

Set up Python environment for NLP and preference optimization projects.

— No reviews yet
0 installs
28 views
0.0% view→install

Install

$ agentstack add skill-cxcscmu-skilllearnbench-nlp-project-setup

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-cxcscmu-skilllearnbench-nlp-project-setup)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Nlp Project Setup? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

NLP Project Environment Setup

Environment Requirements for SimPO

Core Dependencies

  • PyTorch: Deep learning framework (torch, torchvision, torchaudio)
  • Transformers: Hugging Face library for LLMs
  • NumPy: Numerical computing
  • SciPy: Scientific computing utilities
  • tqdm: Progress bars for training loops

Optional but Recommended

  • wandb: Experiment tracking
  • accelerate: Distributed training
  • bitsandbytes: 8-bit optimization
  • Flash-Attn: Efficient attention

Installation Steps

1. Check Python Version

python --version  # Should be 3.8+
python -VV        # Detailed version info

2. Create Virtual Environment (Optional)

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

3. Install Core Dependencies

# PyTorch (CUDA 12.1 example)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

# Transformers
pip install transformers

# Other essentials
pip install numpy scipy tqdm

4. Verify Installation

python -c "import torch; print(torch.__version__)"
python -c "import transformers; print(transformers.__version__)"

Dependency Version Considerations

For SimPO Specifically

  • transformers >= 4.30.0 (for AutoTokenizer, model loading)
  • torch >= 1.13.0 (for modern PyTorch features)
  • numpy (for .npz file saving)

Compatibility Notes

  • Different CUDA versions may require different torch builds
  • GPU memory requirements: typically 10-20GB for 7B models
  • CPU-only mode works but is much slower

Requirements File

Create requirements.txt:

torch>=1.13.0
transformers>=4.30.0
numpy
scipy
tqdm
accelerate>=0.20.0

Then install:

pip install -r requirements.txt

Logging Installed Packages

# Save package list
python -m pip freeze > /root/python_info.txt

# Or capture with version info
python -VV >> /root/python_info.txt
python -m pip freeze >> /root/python_info.txt

Troubleshooting

CUDA/GPU Issues

# Check if CUDA available
python -c "import torch; print(torch.cuda.is_available())"

# Find CUDA version
nvidia-smi  # Shows CUDA version

# Match PyTorch to CUDA version
# Visit: https://pytorch.org/get-started/locally/

Missing Dependencies

# Install specific package
pip install 

# Or reinstall all from requirements
pip install --force-reinstall -r requirements.txt

Version Conflicts

# Show package version
pip show 

# Check compatibility
pip check

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.