Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

@vansangpfiev
Copy link
Contributor

cortex.llamacpp is now supporting multiple models, we need to change method of unloadmodel and modelstatus to POST.
Sample requests for multiple models feature:
load model:

curl http://localhost:3928/inferences/server/loadmodel \
  -H 'Content-Type: application/json' \
  -d '{
    "llama_model_path": "/model/llama-2-7b-model.gguf",
    "model_alias": "llama-2-7b-model",
    "model_type": "llm" // use 'embedding` for embedding model
  }'

unload model

curl http://localhost:3928/inferences/server/unloadmodel \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "llama-2-7b-model"
  }'

@vansangpfiev vansangpfiev self-assigned this May 14, 2024
@vansangpfiev vansangpfiev requested a review from louis-jan May 14, 2024 02:43
@vansangpfiev vansangpfiev marked this pull request as ready for review May 14, 2024 02:44
Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vansangpfiev vansangpfiev merged commit 48dcae3 into dev May 14, 2024
@vansangpfiev vansangpfiev deleted the feat/get-model-method branch July 8, 2024 05:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants