Open
Conversation
Removed sections on design patterns, error handling, and version information from the documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
InfiniLM 配置系统使用说明
概述
提供了一个统一的配置管理系统,用于管理各个脚本和应用的运行参数。
架构设计
核心类:BaseTestConfig
BaseTestConfig是所有配置类的基类,提供通用的参数解析和设备管理功能。支持的设备类型
cpuDEVICE_TYPE_CPUnvidiaDEVICE_TYPE_NVIDIAqyDEVICE_TYPE_QYcambriconDEVICE_TYPE_CAMBRICONascendDEVICE_TYPE_ASCENDmetaxDEVICE_TYPE_METAXmooreDEVICE_TYPE_MOOREiluvatarDEVICE_TYPE_ILUVATARkunlunDEVICE_TYPE_KUNLUNhygonDEVICE_TYPE_HYGON访问属性
自定义配置类
创建自定义配置
要创建自定义配置类,继承
BaseTestConfig并添加特有的参数:使用示例
基础使用
运行脚本
launch_server 使用
# 启动服务器 python launch_server_config.py \ --model_path /path/to/model \ --device nvidia \ --awq \ --max-batch 5 \ --max-tokens 4096