制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗RHAPSODY – Runtime for Heterogeneous APplications, Service Orchestration and DYnamism
A unified runtime for executing AI and HPC workloads on supercomputing infrastructures. RHAPSODY seamlessly integrates traditional scientific computing with AI inference, enabling complex workflows that combine simulation, analysis, and machine learning.
import asyncio
from rhapsody.api import Session, ComputeTask, AITask
from rhapsody.backends import DragonExecutionBackend, DragonVllmInferenceBackend
from rhapsody.backends.ai.config import ModelConfig
async def main():
# Initialize backends
hpc_backend = await DragonExecutionBackend(name="hpc")
ai_backend = await DragonVllmInferenceBackend(
name="vllm", model=ModelConfig(model_name="Qwen2.5-7B", hf_token="...", tp_size=1)
)
# Create session with multiple backends
async with Session(backends=[hpc_backend, ai_backend]) as session:
# HPC simulation task
simulation = ComputeTask(
executable="./simulate",
arguments=["--config", "params.yaml"],
backend=hpc_backend.name
)
# AI analysis task
analysis = AITask(
prompt="Analyze the simulation results and identify key patterns...",
backend=ai_backend.name
)
# Submit and execute
await session.submit_tasks([simulation, analysis])
# Wait for completion (tasks are awaitable!)
sim_result = await simulation
ai_result = await analysis
print(f"Simulation: {sim_result['stdout']}")
print(f"AI Analysis: {ai_result['response']}")
asyncio.run(main())
# Basic installation
pip install rhapsody-py
# With specific backends
pip install rhapsody-py[dask] # Dask distributed computing
pip install rhapsody-py[dragon] # Dragon runtime (Python 3.11-3.13)
# Development
pip install rhapsody-py[dev]
examples/ directoryWe welcome contributions! Please see our Contributing Guide for details.
git checkout -b feature/amazing-feature)make test-regular)pre-commit run --all-files)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Please use the GitHub issue tracker to report bugs or request features.
RHAPSODY is licensed under the MIT License.
RHAPSODY is a collaborative project between two teams:
See the full Team page for details.
RHAPSODY is supported by the National Science Foundation (NSF) under Award ID 2103986. This collaborative project aims to advance the state-of-the-art in heterogeneous workflow execution for scientific computing.
If you use RHAPSODY in your research, please cite:
@software{rhapsody2024,
title={RHAPSODY: Runtime for Heterogeneous Applications, Service Orchestration and Dynamism},
author={RADICAL Research Group, Rutgers University and Hewlett Packard Enterprise},
year={2024},
url={https://github.com/radical-cybertools/rhapsody},
version={0.1.0}
}