memory-estimation
Skill104 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user wants to estimate GPU memory (VRAM) requirements for a training configuration, check if a model will fit on their GPUs, or plan GPU allocation for training.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- setup-guideSkill
- training-guideSkill
- training-hub-guideSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If library=missing, tell the user to install training_hub first via the setup-guide skill.
- Distinctive: line 37
Add more GPUs for data parallelism
- Distinctive: line 48
If no method is specified, the script infers it from the configured algorithm.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GPU Memory Estimation
Estimate GPU VRAM requirements before committing to a training run.
Step 1: Check Environment
"${CLAUDE_PLUGIN_ROOT}/scripts/th_detect.sh"If library=missing, tell the user to install training_hub first via the setup-guide skill.
Step 2: Run Estimation
Execute the estimation script with user-provided parameters or config defaults:
"${CLAUDE_PLUGIN_ROOT}/scripts/th_estimate.sh" $ARGUMENTSStep 3: Present Results
Parse the JSON output and present clearly:
- Memory estimates — Show low/mid/high VRAM estimates in GB
- GPU fit — Report whether the configuration fits on the available GPU(s)
- Recommendations — If memory is tight, suggest:
- Reduce
max_seq_len(e.g., 4096 -> 2048) - Reduce
effective_batch_size - Switch to LoRA or QLoRA for lower memory
- Add more GPUs for data parallelism
- Reduce
Estimation Methods
| Method | For | Estimator |
basic | SFT, GRPO | BasicEstimator |
osft | OSFT | OSFTEstimator |
lora | LoRA-SFT, LoRA-GRPO | LoRAEstimator |
qlora | Quantized LoRA | QLoRAEstimator |
If no method is specified, the script infers it from the configured algorithm.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

