modal-nacrith-gpu

Nacrith-GPU compression system running on Modal serverless.
git clone https://unitehenry.com/git/modal-nacrith-gpu.git
Log | Files | Refs | README

smollm2 (583B)


      1 #!/usr/bin/env bash
      2 
      3 # Clone llama.cpp
      4 git clone 'https://github.com/ggml-org/llama.cpp'
      5 cd llama.cpp
      6 
      7 # Create and activate virtual environment
      8 python3 -m venv venv
      9 source venv/bin/activate
     10 
     11 # Install llama.cpp dependencies
     12 pip install -r requirements.txt
     13 
     14 pip install huggingface_hub[cli]
     15 
     16 huggingface-cli download HuggingFaceTB/SmolLM2-135M-Instruct \
     17   --local-dir SmolLM2-135M-Instruct \
     18   --local-dir-use-symlinks False
     19 
     20 python convert_hf_to_gguf.py SmolLM2-135M-Instruct \
     21   --outfile smollm2-135m-f32.gguf \
     22   --outtype f32
     23 
     24 mv smollm2-135m-f32.gguf ../smollm2-135m-f32.gguf