Optimize For GPU
K-Dense-AI/scientific-agent-skills
GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster.
A skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML.
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .claude/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .claude/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learningType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .agents/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .agents/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .cursor/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .cursor/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wahyudesu/Fastapi-AI-Production-Template.git --path .agents/skills/cuml-machine-learning--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .gemini/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .gemini/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learningInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .github/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .github/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wahyudesu/Fastapi-AI-Production-Template cuml-machine-learning --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wahyudesu/Fastapi-AI-Production-Template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/cuml-machine-learning .opencode/skills/cuml-machine-learning && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cuml-machine-learning" agent skill from https://github.com/wahyudesu/Fastapi-AI-Production-Template/tree/master/.agents/skills/cuml-machine-learning into .opencode/skills/cuml-machine-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cuml-machine-learning", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cuml-machine-learningA skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML.
Cuml Machine Learning is an agent skill from wahyudesu/Fastapi-AI-Production-Template. Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering Machine learning and Backend development. It works with NVIDIA AI Platform, UMAP, FastAPI and Python. The repository describes itself as: Simple starter template for your ML/AI projects (uv package manager, RestAPI with FastAPI and Dockerfile support). The licence is MIT.
Read from SKILL.md and the folder at commit 1d6860f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cuml Machine Learning loads about 1.8k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 284 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wahyudesu/Fastapi-AI-Production-Template at commit 1d6860f, republished under its MIT licence (© wahyudesu). 284 words, ~1,752 tokens.
.claude/skills/cuml-machine-learning/SKILL.md (or your agent's skills folder).GPU-accelerated machine learning using NVIDIA RAPIDS cuML. cuML provides a scikit-learn-compatible API that runs on NVIDIA GPUs, enabling massive speedups on large datasets.
Use this skill when:
Always start every script with this boilerplate. It tests actual GPU ML operations.
import pandas as pd
import numpy as np
try:
import cudf
import cuml
# Smoke-test: verify GPU ML works end-to-end
_test_data = cudf.DataFrame({'a': [1.0, 2.0, 3.0, 4.0], 'b': [5.0, 6.0, 7.0, 8.0]})
_km = cuml.cluster.KMeans(n_clusters=2, n_init=1, random_state=42)
_km.fit(_test_data)
assert len(_km.labels_) == 4
GPU = True
except Exception as e:
print(f"[GPU] cuml unavailable, falling back to scikit-learn: {e}")
GPU = False
def read_csv(path):
return cudf.read_csv(path) if GPU else pd.read_csv(path)
def to_pd(df):
"""Convert cuML/cuDF output to pandas. Use this instead of .to_pandas() directly."""
if not GPU:
return df
try:
return df.to_pandas()
except Exception as e:
print(f"[GPU] .to_pandas() failed, using Arrow fallback: {e}")
return df.to_arrow().to_pandas()# GPU mode
if GPU:
from cuml.cluster import KMeans, DBSCAN, HDBSCAN
from cuml.ensemble import RandomForestClassifier, RandomForestRegressor
from cuml.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
from cuml.neighbors import KNeighborsClassifier, KNeighborsRegressor
from cuml.svm import SVC, SVR
from cuml.decomposition import PCA, TruncatedSVD
from cuml.manifold import UMAP, TSNE
from cuml.preprocessing import StandardScaler, MinMaxScaler, LabelEncoder
from cuml.model_selection import train_test_split
from cuml.metrics import accuracy_score, r2_score, mean_squared_error
# CPU fallback
else:
from sklearn.cluster import KMeans, DBSCAN, HDBSCAN
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from sklearn.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
from sklearn.svm import SVC, SVR
from sklearn.decomposition import PCA, TruncatedSVD
from sklearn.manifold import TSNE
from sklearn.preprocessing import StandardScaler, MinMaxScaler, LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, r2_score, mean_squared_error
# UMAP not in sklearn — skip or pip install umap-learnX = df[["feature1", "feature2", "feature3"]].astype("float32")
y = df["target"]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)model = RandomForestClassifier(n_estimators=100, max_depth=10, random_state=42)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
accuracy = float(accuracy_score(to_pd(y_test), to_pd(predictions)))
print(f"Accuracy: {accuracy:.4f}")
# Feature importances (tree models only)
importances = to_pd(model.feature_importances_)
for name, imp in zip(feature_names, importances):
print(f" {name}: {imp:.4f}")model = Ridge(alpha=1.0)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
r2 = float(r2_score(to_pd(y_test), to_pd(predictions)))
mse = float(mean_squared_error(to_pd(y_test), to_pd(predictions)))
print(f"R² Score: {r2:.4f}")
print(f"MSE: {mse:.4f}")
# Coefficients
coeffs = to_pd(model.coef_)
print(f"Intercept: {float(model.intercept_):.4f}")X = df[["feature1", "feature2"]].astype("float32")
model = KMeans(n_clusters=4, n_init=10, random_state=42)
model.fit(X)
labels = to_pd(model.labels_)
centroids = to_pd(model.cluster_centers_)
inertia = float(model.inertia_)
print(f"Inertia: {inertia:.2f}")
print(f"Cluster sizes: {labels.value_counts().sort_index().to_dict()}")
print(f"Centroids:\n{centroids}")scaler = StandardScaler()
X_scaled = scaler.fit_transform(X.astype("float32"))
pca = PCA(n_components=3)
X_reduced = pca.fit_transform(X_scaled)
variance_ratio = to_pd(pca.explained_variance_ratio_)
print(f"Explained variance: {[f'{v:.4f}' for v in variance_ratio]}")
print(f"Total explained: {float(sum(variance_ratio)):.4f}")if GPU:
reducer = UMAP(n_components=2, n_neighbors=15, min_dist=0.1, random_state=42)
embedding = to_pd(reducer.fit_transform(X_scaled))
print(f"UMAP embedding shape: {embedding.shape}")# Scale numeric features
scaler = StandardScaler()
X_scaled = scaler.fit_transform(X.astype("float32"))
# Encode categorical columns
le = LabelEncoder()
df["category_encoded"] = le.fit_transform(df["category"])X.astype("float32")| Issue | Fix |
|---|---|
TypeError: sparse input | Convert to dense: X.toarray() or don't use sparse |
PCA solver='randomized' fails | Use solver='full' or omit (cuML auto-selects) |
| UMAP not available on CPU | Skip UMAP in CPU mode or pip install umap-learn |
| Float64 slower than float32 | Cast to float32: X.astype("float32") |
| Large dataset OOM | Reduce features or sample data before fitting |
When reporting ML results:
© wahyudesu, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/cuml-machine-learning of wahyudesu/Fastapi-AI-Production-Template.
Open the folder on GitHubat commit 1d6860f
Cuml Machine Learning next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cuml Machine Learning this skillwahyudesu/Fastapi-AI-Production-Template | 114 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Optimize For GPUK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Airflow Pluginsastronomer/agents | 451 | — | ~6k | Automated safety check: Notes | Apache-2.0 | |
| Scikit Learnbrycewang-stanford/Auto-Empirical-Research-Skills | 4.6k | — | ~4.6k | Automated safety check: Pass | Custom licence | |
| Junta Leiloeirossickn33/agentic-awesome-skills | 47k | 2 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Python Projectmajiayu000/spellbook | 287 | — | ~2.7k | Automated safety check: Notes | MIT |
K-Dense-AI/scientific-agent-skills
GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster.
astronomer/agents
Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI.
brycewang-stanford/Auto-Empirical-Research-Skills
Machine learning: clustering, PCA/t-SNE/UMAP, classification, prediction regression (Ridge/Lasso/ensemble), cross-validation, Pipelines.
sickn33/agentic-awesome-skills
Coleta e consulta dados de leiloeiros oficiais de todas as 27 Juntas Comerciais do Brasil.
majiayu000/spellbook
Modern Python project architecture guide for 2025. An agent skill from majiayu000/spellbook.
zLanqing/codex-claude-academic-skills
Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.
Works with
Categories
A skill your agent uses for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Cuml Machine Learning is an agent skill from wahyudesu/Fastapi-AI-Production-Template. Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML.
Cuml Machine Learning fits situations like: GPU-accelerated machine learning on tabular data using NVIDIA cuML; tasks involve classification; dimensionality reduction; model training on datasets.
Run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a claude-code`. Or copy the skill folder (.agents/skills/cuml-machine-learning in wahyudesu/Fastapi-AI-Production-Template) into .claude/skills/cuml-machine-learning in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a codex`. Or copy the skill folder (.agents/skills/cuml-machine-learning in wahyudesu/Fastapi-AI-Production-Template) into .agents/skills/cuml-machine-learning in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wahyudesu/Fastapi-AI-Production-Template --skill cuml-machine-learning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cuml-machine-learning, .gemini/skills/cuml-machine-learning, .github/skills/cuml-machine-learning and .opencode/skills/cuml-machine-learning in your project.
Going by SKILL.md and its folder, Cuml Machine Learning needs the command-line tools its instructions call (pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cuml Machine Learning is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cuml Machine Learning: Optimize For GPU (K-Dense-AI/scientific-agent-skills, 48k stars), Airflow Plugins (astronomer/agents, 451 stars), Scikit Learn (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars) and Junta Leiloeiros (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wahyudesu (a GitHub user) maintains it in wahyudesu/Fastapi-AI-Production-Template, which has 114 GitHub stars. The repository was last updated on April 16, 2026.
Source: wahyudesu/Fastapi-AI-Production-Template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.