Get desktop application:
View/edit binary Protocol Buffers messages
Interface exported by the service.
Build model from structure config.
callback for ResultQueue
Get model type, input tensor , output tensor info
Get op profiling info profiling string includes op name, min_time, max_time, count, sum, percentage
Get rank id (0~rank_num-1) Since openmpi is used to manage CPU inferer task, which may launch multiply process to do the inferer, GetRankId is used to indicate the manager process and get the output in manager process. @note 0 is the manager process, we get output only if GetRandId return 0. GetRankId always return 0 in GPU inferer.
Get rank num It is used to check if service is still alive
Get SDK version string version string will include version, git sha1, and build time, eg: 0.1.4/(GitSha1:beaca93)/(Build:20230403154806)
release model
release request
shutdown service
start model
start request
stop model
stop request
sync request
AllSpark status code
Used in: ,
正常状态
兜底错误类型
传入的参数值错误
IO访问错误
内存越界等错误
运行时触发的OP错误返回
参数或输入超限
无效调用
无有效请求
没有找到有效的request_id
停服务状态,拒绝服务
ALLSPARK_LORA_NOT_LOADED = 13; // 用户指定的lora没加载, 已经停用
流式返回
Used in:
Used in:
Used as response type in: AllSpark.BuildModelFromConfigStruct, AllSpark.ReleaseModel, AllSpark.ReloadModelToDeviceMemory, AllSpark.ShutdownService, AllSpark.StartModel, AllSpark.StopModel, AllSpark.UnloadModelFromDeviceMemory
Used in:
Used in:
Used in:
Used in:
Used in:
Used in:
Used as request type in: AllSpark.GetRankId, AllSpark.GetRankNums, AllSpark.GetVersionFull, AllSpark.ShutdownService
(message has no fields)
Used in:
/ Init status.
/ Context computation finished.
/ Start generating.
/ Generation finished, EOS token was generated.
/ The Generation was interrupted, often means
Used in:
Used as response type in: AllSpark.Get, AllSpark.GetNoWait
Used in:
Used as request type in: AllSpark.GetAsEngineStat, AllSpark.GetModelInformation, AllSpark.GetOpProfilingInfo, AllSpark.ReleaseModel, AllSpark.ReloadModelToDeviceMemory, AllSpark.StartModel, AllSpark.StopModel, AllSpark.UnloadModelFromDeviceMemory
Used as response type in: AllSpark.GetRankId, AllSpark.GetRankNums
Used in:
Used in:
Used as response type in: AllSpark.ReleaseRequest, AllSpark.StartRequest, AllSpark.StopRequest, AllSpark.SyncRequest
Used as request type in: AllSpark.ReleaseRequest, AllSpark.StopRequest, AllSpark.SyncRequest
Used in:
Used in:
Used in: ,
Used in:
Used in:
Used in: ,
Used as request type in: AllSpark.GenerateStatus, AllSpark.GeneratedLength, AllSpark.Get, AllSpark.GetNoWait
Used in: