[sdk/python] Rename flamepy.rl module to flamepy.runner#341
Conversation
Summary of ChangesHello @k82cn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request is a comprehensive refactoring that renames the flamepy.rl module to flamepy.run for a more intuitive API. The changes span across the Python SDK, Rust code, tests, examples, and documentation, ensuring consistency throughout the project. The renaming is well-executed, and all references appear to be updated correctly. I've found one minor typo in the documentation that could be corrected for clarity.
| # Parameter Server Example | ||
|
|
||
| In AI-related distributed workloads, large amounts of data often need to be transferred between multiple worker nodes. Flame provides an object cache mechanism to facilitate the transfer of data objects between nodes. This example demonstrates the use of `Flame.rl.Runner` in a training scenario through a simple case based on the `Parameter Server` (ps-worker) pattern. | ||
| In AI-related distributed workloads, large amounts of data often need to be transferred between multiple worker nodes. Flame provides an object cache mechanism to facilitate the transfer of data objects between nodes. This example demonstrates the use of `Flame.run.Runner` in a training scenario through a simple case based on the `Parameter Server` (ps-worker) pattern. |
There was a problem hiding this comment.
There's a small typo in the documentation. Flame.run.Runner should likely be flamepy.run.Runner to match the Python module path and for consistency with other parts of the documentation.
| In AI-related distributed workloads, large amounts of data often need to be transferred between multiple worker nodes. Flame provides an object cache mechanism to facilitate the transfer of data objects between nodes. This example demonstrates the use of `Flame.run.Runner` in a training scenario through a simple case based on the `Parameter Server` (ps-worker) pattern. | |
| In AI-related distributed workloads, large amounts of data often need to be transferred between multiple worker nodes. Flame provides an object cache mechanism to facilitate the transfer of data objects between nodes. This example demonstrates the use of `flamepy.run.Runner` in a training scenario through a simple case based on the `Parameter Server` (ps-worker) pattern. |
27e44d9 to
905bc10
Compare
Rename the Runner module from flamepy.rl to flamepy.runner for a cleaner and more intuitive API. This avoids conflict with the existing flamepy.run() function used for running services. This change updates all references across: - SDK/Python source files - Rust references in common and session_manager - E2E tests - Examples (ps, pi) - Documentation (tutorials, blogs, design docs)
905bc10 to
3d435e3
Compare
Summary
flamepy.rlmodule toflamepy.runnerfor a cleaner and more intuitive APIChanges
SDK/Python
sdk/python/src/flamepy/rl/→sdk/python/src/flamepy/runner/runpy.py,runner.py,__main__.pyflamepy/__init__.pyto exportrunnerinstead ofrlRust
common/src/lib.rs- changedflamepy.rl.runpytoflamepy.runner.runpysession_manager/src/storage/engine/sqlite.rsTests
e2e/src/e2e/helpers.pye2e/tests/test_flmrun.pye2e/tests/test_runner.pyExamples
examples/ps/main.pyandREADME.mdexamples/pi/python/main.pyDocumentation
docs/tutorials/runner-setup.mddocs/blogs/run-pi-with-runner.mddocs/designs/FRE280-runner/anddocs/designs/RFE284-flmrun/Usage
Testing
All existing tests should pass after updating imports.