Skip to content

update#57

Merged
tastelikefeet merged 1 commit intodevfrom
yingda
Feb 13, 2026
Merged

update#57
tastelikefeet merged 1 commit intodevfrom
yingda

Conversation

@yingdachen
Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @yingdachen, 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 primarily focuses on updating and clarifying the project's documentation, particularly regarding the new 'Training as a Service' offering on ModelScope. It streamlines installation guides, provides more precise information on model support, and refines code examples for better usability. The changes aim to enhance the user experience by offering clearer instructions and up-to-date information for both English and Chinese audiences.

Highlights

  • Documentation Updates: Revised the README.md to update installation instructions, clarify the changelog, and introduce the 'Training as a Service on ModelScope' section, including details on beta access and documentation.
  • Model Support Clarity: Added a note in README.md under 'Supported Models' to specify the current model supported by the serverless training service and standardized the 'Megatron Support' icons in the model table.
  • Code Example Refinements: Modified Python code examples in README.md to introduce a base_model variable for consistency, updated API client initialization, and removed redundant training launch instructions.
  • Chinese Documentation Overhaul: Renamed docs/source_zh/使用指引/魔搭官方环境.md to docs/source_zh/使用指引/训练服务.md and completely rewrote its content to detail the ModelScope 'Training as a Service', including steps for user registration and joining the twinkle-explorers organization.
  • Markdown Formatting Cleanup: Removed unnecessary HTML div and p tags from docs/source_zh/使用指引/快速开始.md to improve Markdown rendering.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Updated 'Installation from Source' heading to 'Install from Source'.
    • Revised changelog entry date and description for initial Twinkle release.
    • Replaced 'ModelScope Community' and 'ModelScope Official Environment' sections with a new 'Training as a Service on ModelScope' section.
    • Added a note regarding the specific model supported by the serverless training service.
    • Standardized 'Megatron Support' icons from '✔' to '✅' in the supported models table.
    • Introduced a base_model variable and updated its usage in the train() function example.
    • Changed 'Tinker-Like Remote API' heading to 'Using Tinker-Like API'.
    • Refactored the Tinker-Like API example to define base_model, base_url, and api_key variables, and updated the init_tinker_compat_client call.
    • Removed the 'Launch training' section.
  • README_ZH.md
    • Updated the documentation link for the ModelScope official environment from 魔搭官方环境.md to 训练服务.md.
  • docs/source_zh/使用指引/快速开始.md
    • Removed HTML div and p tags used for centering content.
    • Removed the bullet point '如果你缺少训练硬件,希望使用社区资源' from the '何时选择Twinkle' section.
  • docs/source_zh/使用指引/魔搭官方环境.md
    • Renamed to docs/source_zh/使用指引/训练服务.md.
    • Updated the document title to 'ModelScope上的Twinkle训练服务'.
    • Rewrote the introductory paragraph to describe the hosted model training service (Training as a Service).
    • Revised 'Step 1' to combine user registration and joining the twinkle-explorers organization for access.
    • Consolidated information about obtaining the API-Key and the calling endpoint.
    • Renumbered 'Step 3' to 'Step 2'.
Activity
  • The pull request was created by yingdachen with the title 'update' and an empty description.
  • No additional human activity, such as comments or reviews, has been recorded for this pull request.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation, primarily in the README.md file, to provide new information about the Training as a Service offering on ModelScope. The changes include updating the changelog, clarifying service access, and refactoring code examples.

While the updates are helpful, I've identified a few issues:

  • A likely bug in a Python code example in README.md where a wrong variable is passed to a function.
  • Several markdown formatting errors in README.md that could affect readability and rendering.
  • A link in README.md points to an English documentation file that is now outdated and inconsistent with the changes in this PR.
  • The Chinese documentation (README_ZH.md) has not been fully synchronized with the English version, leading to inconsistencies.

Please see my detailed comments for suggestions on how to address these points.


# Initialize tinker client
service_client = init_tinker_compat_client(base_url='http://www.modelscope.cn/twinkle', api_key=os.environ.get('MODELSCOPE_SDK_TOKEN'))
service_client = init_tinker_compat_client(base_model, api_key)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There seems to be a bug in this example. The init_tinker_compat_client function is called with base_model as the first argument, but it likely expects base_url. The base_url variable is defined on line 207 but never used. This will probably cause the example code to fail. Please verify the function signature and pass base_url instead.

Suggested change
service_client = init_tinker_compat_client(base_model, api_key)
service_client = init_tinker_compat_client(base_url, api_key)

Comment on lines +82 to +85
We are rolling out training service built atop Twinkle✨ on ModelScope. It is currently in _Beta_. You may
sign up for free access by joining the [Twinkle-Explorers](https://modelscope.cn/organization/twinkle-explorers) organization, and
train via API endpoint `base_url=https://www.modelscope.cn/twinkle`. For more details, please refer to
our [documentation](docs/source_en/Usage%20Guide/ModelScope-Official-Resources.md).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The linked English documentation file (docs/source_en/Usage Guide/ModelScope-Official-Resources.md) appears to be outdated. It still contains the old instructions, which are inconsistent with the new process described in this README and the updated Chinese documentation (docs/source_zh/使用指引/训练服务.md). To avoid confusion for English-speaking users, please consider updating this document and renaming it (e.g., to Training-Service.md) to match the changes made to the Chinese documentation.

Comment on lines +106 to +107
| Model Type | Model ID on [ModelScope](https://modelscope.cn) | Requires | Megatron Support | HF Model ID |
| ------------------- |--------------------------------------------------------------------------------------------------------------------------| -------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The markdown table formatting appears to be broken. The separator for the second column is not aligned and lacks spacing, which can cause rendering issues on some platforms. Please adjust the separator line to align with the headers for better readability and consistent rendering.

Suggested change
| Model Type | Model ID on [ModelScope](https://modelscope.cn) | Requires | Megatron Support | HF Model ID |
| ------------------- |--------------------------------------------------------------------------------------------------------------------------| -------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- |
| Model Type | Model ID on [ModelScope](https://modelscope.cn) | Requires | Megatron Support | HF Model ID |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------- |

@tastelikefeet tastelikefeet merged commit 547555e into dev Feb 13, 2026
0 of 2 checks passed
@tastelikefeet tastelikefeet deleted the yingda branch February 13, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants