ray-core

Execute Python functions and classes in parallel across CPUs, GPUs, and machines with Ray.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill ray-core-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ray-core
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/ml-libraries/ray/core
Command: npx skills add https://github.com/hung-phan/ml-skills --skill ray-core-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ray, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of limited parallelism in Python and the complexity of building distributed services, allowing for the parallelization of CPU/GPU-bound Python work across cores or machines.

Core Features & Use Cases

  • Distributed Computing: Execute tasks in parallel across multiple CPUs/GPUs and machines.
  • Stateful Actors: Maintain stateful workers like model servers or parameter servers.
  • Shared Object Store: Share large data like embeddings or model weights between tasks.
  • Use Case: Ideal for building distributed systems, such as parallel data processing, distributed machine learning, and large-scale simulations.

Quick Start

Use the ray-core skill to create a placement group for 2 GPUs on the same node.

Frequently Asked Questions about ray-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python functions in parallel across multiple machines?

To run Python functions in parallel across multiple machines, you can use Ray to distribute tasks over multiple CPUs and GPUs. This approach enables parallel execution by managing tasks and shared object stores across a cluster.

What is the best way to maintain stateful workers for distributed machine learning?

The best way to maintain stateful workers for distributed machine learning is by using Ray actors. Actors allow you to maintain stateful workers like model servers or parameter servers throughout the distributed computing lifecycle.

Can I share large model weights between parallel tasks without serialization overhead?

Yes, you can share large model weights between parallel tasks using Ray's shared object store. The shared object store allows you to share large data like embeddings or model weights between tasks efficiently.

How do I allocate specific GPUs on the same node for distributed computing?

To allocate specific GPUs on the same node for distributed computing, you can create a placement group using Ray. This allows you to schedule tasks and actors requiring specific hardware resources like 2 GPUs on a single machine.

Does Ray support parallel data processing and large-scale simulations?

Yes, Ray supports parallel data processing and large-scale simulations. It is designed for building distributed systems and services, allowing you to parallelize CPU or GPU-bound Python work across cores or machines.