You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

inference.api 2.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. syntax = "v1"
  2. type (
  3. /******************image inference*************************/
  4. ModelTypesResp {
  5. ModelTypes []string `json:"types"`
  6. }
  7. ModelNamesReq {
  8. Type string `form:"type"`
  9. }
  10. ModelNamesResp {
  11. ModelNames []string `json:"models"`
  12. }
  13. /******************image inference*************************/
  14. ImageInferenceReq {
  15. TaskName string `form:"taskName"`
  16. TaskDesc string `form:"taskDesc"`
  17. ModelName string `form:"modelName"`
  18. ModelType string `form:"modelType"`
  19. AdapterId string `form:"adapterId"`
  20. AiClusterIds []string `form:"aiClusterIds,optional"`
  21. ResourceType string `form:"resourceType,optional"`
  22. ComputeCard string `form:"card,optional"`
  23. Strategy string `form:"strategy"`
  24. StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
  25. Params []string `form:"params,optional"`
  26. Envs []string `form:"envs,optional"`
  27. Cmd string `form:"cmd,optional"`
  28. Replica int32 `form:"replicas,optional"`
  29. }
  30. ImageInferenceResp {
  31. InferResults []*ImageResult `json:"result"`
  32. }
  33. ImageResult {
  34. ClusterId string `json:"clusterId"`
  35. ClusterName string `json:"clusterName"`
  36. ImageName string `json:"imageName"`
  37. Card string `json:"card"`
  38. ImageResult string `json:"imageResult"`
  39. }
  40. InferenceTaskDetailReq{
  41. taskId int64 `form:"taskId"`
  42. }
  43. InferenceTaskDetailResp{
  44. InferenceResults []InferenceResult `json:"data"`
  45. Code int32 `json:"code,omitempty"`
  46. Msg string `json:"msg,omitempty"`
  47. }
  48. InferenceResult{
  49. imageName string `json:"imageName"`
  50. TaskName string `json:"taskName"`
  51. TaskAiName string `json:"taskAiName"`
  52. result string `json:"result"`
  53. card string `json:"card"`
  54. clusterName string `json:"clusterName"`
  55. }
  56. /******************TextToText inference*************************/
  57. TextToTextInferenceReq{
  58. TaskName string `form:"taskName"`
  59. TaskDesc string `form:"taskDesc"`
  60. ModelName string `form:"modelName"`
  61. ModelType string `form:"modelType"`
  62. AdapterId string `form:"adapterId"`
  63. ClusterId string `form:"clusterIds"`
  64. }
  65. TextToTextInferenceResp{
  66. }
  67. )

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.