AGENT SKILL

tensor-dataframe-core

Routes Mars tensor, DataFrame, session, eager-mode, and local CPU execution requests to the verified array-and-table workflow guidance.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
tensor-dataframe-core
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Routes Mars tensor, DataFrame, session, eager-mode, and local CPU execution requests to the verified array-and-table workflow guidance.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Tensor and DataFrame Core

Use this sub-skill for the everyday Mars workflows that look like NumPy, pandas, and a local session: new_session, execute, fetch, stop_server, tensor creation and arithmetic, DataFrame and Series creation, selection, groupby, and small file-backed IO.

Trigger phrases

  • "How do I start a local Mars session?"
  • "How do I run a small tensor or DataFrame computation?"
  • "Why does execute() return a Mars object?"
  • "How do I switch eager mode on or off?"
  • "How do I read or write a small CSV, HDF5, or Parquet file?"
  • "How do I convert between Mars tensors, DataFrames, NumPy, and pandas?"

What belongs here

  • Local CPU usage and session lifecycle.
  • Core tensor and DataFrame constructors, math, reductions, indexing, and reshaping.
  • mars.config.options and option_context for eager mode and related settings.
  • Tiny safe IO examples that do not need external services or credentials.

What stays elsewhere

  • Remote DAGs, logs, or script execution -> remote-and-scripts.
  • Learn estimators and integrations -> learn-and-integrations.
  • Ray, GPU, Kubernetes, YARN, or CLI help -> deployment-and-backends.

Read these bundled files

  • references/api-reference.md for the verified API surface and representative signatures.
  • references/workflows.md for the step-by-step local compute path.
  • references/troubleshooting.md for install/import, session, IO, and path-shadowing failures.
  • scripts/check_tensor_dataframe.py for a tiny CPU smoke that future agents can run without reopening the source repo.

Minimal route

  1. Import mars, mars.tensor as mt, and mars.dataframe as md.
  2. Create a local session with mars.new_session() when you want repeatable execution.
  3. Build a tiny tensor or DataFrame.
  4. Call .execute() and then .fetch() only when you want the concrete value.
  5. Use mars.stop_server() after smoke runs that create a session.

Common decisions

  • Use .execute() rather than .to_numpy() or .to_pandas() for large values.
  • Use option_context({'eager_mode': True}) only when you want immediate execution for a short debugging session.
  • Treat groupby, indexing, and IO as part of the same local workflow, not as separate skills.
  • If mars.dataframe import fails because a shadowed ray module is visible, fix the environment first instead of rewriting the workflow.

Quality bar

A future agent should be able to answer the usual local Mars questions from this sub-skill alone: start a session, run a small tensor or DataFrame example, understand the execution model, choose between execute and fetch, and recover from the most common environment and IO issues.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351