मुख्य सामग्री पर जाएँ
Skillpedia
मशीन लर्निंग18k · #10615

run-experiment

यह क्या करती है

प्रयोग चलाने वाली स्किल का यह Codex संस्करण आपके प्रोजेक्ट के कंप्यूट सेटअप पर ट्रेनिंग जॉब्स शुरू करता है। यह उन शोधकर्ताओं के लिए है जो Codex से GPU पर कोड चलाना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप स्थानीय GPU या दूरस्थ सर्वर पर ट्रेनिंग जॉब शुरू करना चाहते हों।
  • ✓जब आपको Vast.ai या Modal पर प्रयोग चलाना हो।
  • ✓जब आप चाहते हों कि लंबा रन शुरू होने से पहले एनवायरनमेंट जाँच लिया जाए।

Skill का लिंक

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex/run-experiment/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex/run-experiment/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्रोजेक्ट नोट्स में बताए दूरस्थ GPU सर्वर पर मेरा ट्रेनिंग प्रयोग शुरू कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट एनवायरनमेंट खोजने के लिए प्रोजेक्ट नोट्स पढ़ता है, GPU जाँचता है और जॉब शुरू करता है। नए एनवायरनमेंट के लिए वह एक spec लिखता है और सेटअप पर भरोसे से पहले एक सरल जाँच चलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Run Experiment

Deploy and run ML experiment: $ARGUMENTS

Workflow

Step 1: Detect Environment

Read the project's AGENTS.md to determine the experiment environment:

  • Local GPU: Look for local CUDA/MPS setup info
  • Remote server: Look for SSH alias, conda env, code directory
  • Vast.ai instance: Look for gpu: vast, vast_instance, SSH host/port, remote path, and optional auto_destroy
  • Modal serverless: Look for gpu: modal, app/function name, image/dependency setup, and secrets

If no server info is found in AGENTS.md, ask the user.

Environment contract (../shared-references/compute-env-contract.md): before building or trusting any environment, read the provider's env ledger (.aris/compute/<provider>.md) — an unchanged spec hash means warm-reuse, a changed one means rebuild. New env → write the declarative spec first, render it for this provider's shape, and never declare it ready on import-success alone: run the seeded kernel witness, and after any rebuild/doc edit run the agent-follows-doc pass (a fresh subagent executes the documented invocation verbatim and reports doc-vs-reality divergence).

Step 2: Pre-flight Check

Check GPU availability on the target machine:

Remote:

ssh <server> nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader

Local:

nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader
# or for Mac MPS:
python -c "import torch; print('MPS available:', torch.backends.mps.is_available())"

Free GPU = memory.used < 500 MiB.

Step 3: Sync Code (Remote Only)

Check the project's AGENTS.md for a code_sync setting. If not specified, default to rsync.

Option A: rsync (default)

Only sync necessary files — NOT data, checkpoints, or large files:

rsync -avz --include='*.py' --exclude='*' <local_src>/ <server>:<remote_dst>/

Option B: git (when code_sync: git is set in AGENTS.md)

Push local changes to remote repo, then pull on the server:

# 1. Push from local
git add -A && git commit -m "sync: experiment deployment" && git push

# 2. Pull on server
ssh <server> "cd <remote_dst> && git pull"

Benefits: version-tracked, multi-server sync with one push, no rsync include/exclude rules needed.

Option C: Vast.ai instance

If gpu: vast is configured, treat the Vast.ai machine as a remote server with an explicit lifecycle:

  1. Verify the instance is running and reachable.
  2. Sync code to the configured remote path.
  3. Confirm data/checkpoints are already mounted or intentionally copied.
  4. Record the instance id in the launch summary for later cleanup.

Do not silently ignore a requested Vast.ai route. If Vast.ai CLI credentials or instance metadata are missing, stop and ask the user to configure them.

Step 3.5: W&B Integration (when wandb: true in AGENTS.md)

Skip this step entirely if wandb is not set or is false in AGENTS.md.

Before deploying, ensure the experiment scripts have W&B logging:

  1. Check if wandb is already in the script — look for import wandb or wandb.init. If present, skip to Step 4.

  2. If not present, add W&B logging to the training script:

    import wandb
    wandb.init(project=WANDB_PROJECT, name=EXP_NAME, config={...hyperparams...})
    
    # Inside training loop:
    wandb.log({"train/loss": loss, "train/lr": lr, "step": step})
    
    # After eval:
    wandb.log({"eval/loss": eval_loss, "eval/ppl": ppl, "eval/accuracy": acc})
    
    # At end:
    wandb.finish()
    
  3. Metrics to log (add whichever apply to the experiment):

    • train/loss — training loss per step
    • train/lr — learning rate
    • eval/loss, eval/ppl, eval/accuracy — eval metrics per epoch
    • gpu/memory_used — GPU memory (via torch.cuda.max_memory_allocated())
    • speed/samples_per_sec — throughput
    • Any custom metrics the experiment already computes
  4. Verify wandb login on the target machine:

    ssh <server> "wandb status"  # should show logged in
    # If not logged in:
    ssh <server> "wandb login <WANDB_API_KEY>"
    

The W&B project name and API key come from AGENTS.md (see example below). The experiment name is auto-generated from the script name + timestamp.

Step 4: Deploy

Remote (via SSH + screen)

For each experiment, create a dedicated screen session with GPU binding:

ssh <server> "screen -dmS <exp_name> bash -c '\
  eval \"\$(<conda_path>/co
अक्सर पूछे जाने वाले सवाल

सर्वर की जानकारी कहाँ से मिलती है?

यह प्रोजेक्ट की AGENTS.md फ़ाइल पढ़ती है, और अगर उसमें सर्वर की जानकारी न हो तो आपसे पूछती है।

क्या यह पहले GPU जाँचती है?

हाँ। शुरू करने से पहले यह GPU उपलब्धता की प्री-फ़्लाइट जाँच चलाती है।

Modal के बारे में क्या?

Modal को उसकी serverless ऐप और dependency सेटअप के ज़रिए संभाला जाता है, जैसा स्किल बताती है।

जानकारी

लेखक का मूल विवरण

Deploy and run ML experiments on local or remote GPU servers. Use when user says \"run experiment\", \"deploy to server\", \"\u8dd1\u5b9e\u9a8c\", or needs to launch training jobs.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10615
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

ablation-planner

18k

आपके एजेंट को किसी शोधपत्र के लिए ablation अध्ययन की योजना बनाने में मदद करती है, मुख्य परिणाम अच्छे दिखने पर समीक्षकों द्वारा माँगे जाने वाले परीक्षण चुनते हुए।

लेखन और डॉक्यूमेंटरिसर्च

alphaxiv

18k

आपके एजेंट को AlphaXiv सार से एक शोधपत्र जल्दी पढ़ने देती है, पूरे पाठ या LaTeX स्रोत को बैकअप के रूप में रखकर, arXiv लिंक या ID से।

लेखन और डॉक्यूमेंटरिसर्च

analyze-results

18k

आपके एजेंट को मशीन लर्निंग प्रयोगों के परिणामों का विश्लेषण करने देती है, रनों की तुलना आधार रेखा से करती है, और आँकड़ों को स्पष्ट निष्कर्षों और अगले कदमों में बदलती है।

डेटाएनालिसिस और स्प्रेडशीट

arxiv

18k

आपके एजेंट को arXiv पर शैक्षणिक शोधपत्र खोजने, उनका विवरण पढ़ने, और किसी शोध विषय के लिए PDF आपकी लाइब्रेरी में सहेजने देती है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills