Skip to content

Conversation

@yeahdongcn
Copy link

Testing Done

  • Build musa_simple docker image locally -> pass
  • Run musa_simple container to serve llama3.2_1b_q8_0.gguf -> pass
    ❯ docker run --net=host --cap-add SYS_RESOURCE -e USE_MLOCK=0 -e MODEL=/models/llama3.2_1b_q8_0.gguf -e N_GPU_LAYERS=999 -v $HOME/models:/models -it musa_simple
  • Access API server with curl -> pass
    ❯ curl -X 'POST'   'http://localhost:8000/v1/completions'   -H 'accept: application/json'   -H 'Content-Type: application/json'   -d '{
      "prompt": "\n\n### Instructions:\nWhat is the capital of France?\n\n### Response:\n",
      "stop": [
        "\n",
        "###"
      ]
    }'
    {"id":"cmpl-cf14c7fb-17d6-494a-97ef-8353492625ed","object":"text_completion","created":1732532988,"model":"/models/llama3.2_1b_q8_0.gguf","choices":[{"text":"Paris","index":0,"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":15,"completion_tokens":2,"total_tokens":17}}%    

Please refer to the attached screenshot for additional details.
Screenshot 2024-11-25 at 19 14 52

@yeahdongcn
Copy link
Author

@abetlen Hi Andrei, could you please review this PR? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant