CoolFace
Modelpublic

mii-llm/nesso-4B-GGUF

sourceHugging Faceotherupdated 8mo agoView on Hugging Face
0likes197downloads
Model Card

mii-llm/nesso-4B-GGUF

This model is the GGUF version of mii-llm/nesso-4B

Deployment

Docker and llama.cpp

You can use the following docker-compose.yml file (change the quantization (:Q4KM, :Q80 or :BF16) and the contextsize (--ctx-size 4000) according your needs):

docker-compose
services:
  llamacpp:
    image: ghcr.io/ggml-org/llama.cpp:full
    command: --server --host 0.0.0.0 -hf mii-llm/nesso-4B-GGUF:Q4_K_M --alias nesso:4B --jinja -ngl 99 --threads -1 --temp 0.15 --ctx-size 4000
    ports:
    - 8080:8080
    volumes:
    - ./llama.cpp:/root/.cache/llama.cpp:rw,z

Run unsing docker compose up, on localhost:8080 you can find a web iterface for chatting and at localhost:8080/v1 you can use the OPEN AI Like API.

To use the GPU (so nvidia docker toolkit) specify the GPUs on the docker-compose.yml file and use it as the one below (change the device_ids with the ID of GPUs that you want to use):

docker-compose
services:
  llamacpp:
    image: ghcr.io/ggml-org/llama.cpp:full-cuda
    command: --server --host 0.0.0.0 -hf mii-llm/nesso-4B-GGUF:Q4_K_M --alias nesso:4B --jinja -ngl 99 --threads -1 --temp 0.15 --ctx-size 4000
    ports:
    - 8080:8080
    volumes:
    - ./llama.cpp:/root/.cache/llama.cpp:rw,z
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            device_ids: ["0,1"]
            capabilities: [gpu]

You can also use vulkan and other kind of GPUs more information on llama.cpp documentation