Skip to content

[SUPPORT] how to skip huggingface model download and directly use a local model #306

@XiaobinZhao

Description

@XiaobinZhao

My environment does not have access to the external network,Of course, cannot access huggingface.

Question

  1. How to skip huggingface model download and directly use a local model?
  2. How to delete resources without deleting existing model files (kubectl delete-f ./config/models/moonshotai/Kimi-K2-Instruct.yaml)
  3. When deleting the resource ClusterBaseModel, it gets stuck and cannot be deleted
apiVersion: ome.io/v1beta1
kind: ClusterBaseModel
metadata:
  name: kimi-k2-instruct
spec:
  vendor: moonshotai
  modelFormat:
    name: safetensors
  disabled: false
  version: "1.0.0"
  storage:
    storageUri: hf://moonshotai/Kimi-K2-Instruct-0905
    path: /llm/ome-model

What did you try?

git clone https://github.com/sgl-project/ome
# Step 1: Install OME CRDs
helm upgrade --install ome-crd ./charts/ome-crd --namespace ome
# Step 2: Install OME core resources
helm upgrade --install ome ./charts/ome-resources --namespace ome
# 注册kimi k2
kubectl apply -f ./config/models/moonshotai/Kimi-K2-Instruct.yaml
# 安装 Kimi K2
kubectl apply -f ./config/runtimes/srt/kimi-k2-pd-rt.yaml
# 部署
kubectl apply -f ./config/samples/isvc/moonshotai/kimi-k2-pd.yaml

Environment

  • OME version: ome main(commit 906589b Mon Oct 27 12:20:04 2025) /model-agent:v0.1.3 / ome-manager:v0.1.3
  • Kubernetes version: v1.26.11
  • Runtime being used (SGLang etc.): sglang-0.4.10
  • Model being served (if applicable): moonshotai/kimi-k2-instruct-0905

Additional context

My environment does not have access to the external network,Of course, cannot access huggingface

@pallasathena92 could you help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions