logo

InferX AI Function Platform (Lambda Function for Inference)

    --   Serve tens models in one box with ultra-fast (<2 sec) cold start (contact: support@inferx.net)



Model Baichuan-7B

namespace model name standby gpu standby pageable standby pinned memory gpu count vRam (MB) cpu memory (MB) state revision
baichuan-inc Baichuan-7B Blob Blob Blob 2 13800 20.0 60000 Normal 158

Image

Prompt



Sample Rest Call

Pods

tenant namespace pod name state require resource allocated resource
public baichuan-inc public/baichuan-inc/Baichuan-7B/158/940 Standby {'CPU': 20000, 'Mem': 60000, 'GPU': {'Type': 'Any', 'Count': 2, 'vRam': 13800}} {'nodename': 'node3', 'CPU': 20000, 'Mem': 60000, 'GPUType': 'A4000', 'GPUs': {'vRam': 0, 'map': {}, 'slotSize': 0, 'totalSlotCnt': 0}, 'MaxContextPerGPU': 2}

Failures

tenant namespace model name revision id exit info state
public baichuan-inc Baichuan-7B 158 516 Error("DockerContainerWaitError { error: \"\", code: 139 }") log

Func

{
 "image": "vllm/vllm-openai:v0.6.2",
 "commands": [
  "--model",
  "baichuan-inc/Baichuan-7B",
  "--enforce-eager",
  "--disable-custom-all-reduce",
  "--trust-remote-code",
  "--max-model-len",
  "1200",
  "--tensor-parallel-size=2"
 ],
 "envs": [
  [
   "LD_LIBRARY_PATH",
   "/usr/local/lib/python3.12/dist-packages/nvidia/cuda_nvrtc/lib/:$LD_LIBRARY_PATH"
  ]
 ],
 "mounts": [
  {
   "hostpath": "/home/brad/cache",
   "mountpath": "/root/.cache/huggingface"
  }
 ],
 "endpoint": {
  "port": 8000,
  "schema": "Http",
  "probe": "/health"
 },
 "version": 158,
 "entrypoint": [],
 "resources": {
  "CPU": 20000,
  "Mem": 60000,
  "GPU": {
   "Type": "Any",
   "Count": 2,
   "vRam": 13800
  }
 },
 "standby": {
  "gpu": "Blob",
  "pageable": "Blob",
  "pinned": "Blob"
 },
 "probe": {
  "port": 80,
  "schema": "Http",
  "probe": "/health"
 },
 "sample_query": {
  "apiType": "openai",
  "path": "v1/completions",
  "prompt": "\u767b\u9e73\u96c0\u697c->\u738b\u4e4b\u6da3\n\u591c\u96e8\u5bc4\u5317->",
  "body": {
   "max_tokens": "1000",
   "model": "baichuan-inc/Baichuan-7B",
   "stream": "true",
   "temperature": "0"
  }
 }
}