Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add musa_simple Dockerfile for supporting Moore Threads GPU #1842

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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

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