Instructions to use mitkox/starcoder2-15b-q4_k_m.gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use mitkox/starcoder2-15b-q4_k_m.gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mitkox/starcoder2-15b-q4_k_m.gguf", filename="starcoder2-15b-q4_k_m.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use mitkox/starcoder2-15b-q4_k_m.gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
Use Docker
docker model run hf.co/mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mitkox/starcoder2-15b-q4_k_m.gguf with Ollama:
ollama run hf.co/mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
- Unsloth Studio new
How to use mitkox/starcoder2-15b-q4_k_m.gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mitkox/starcoder2-15b-q4_k_m.gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mitkox/starcoder2-15b-q4_k_m.gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mitkox/starcoder2-15b-q4_k_m.gguf to start chatting
- Docker Model Runner
How to use mitkox/starcoder2-15b-q4_k_m.gguf with Docker Model Runner:
docker model run hf.co/mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
- Lemonade
How to use mitkox/starcoder2-15b-q4_k_m.gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mitkox/starcoder2-15b-q4_k_m.gguf:Q4_K_M
Run and chat with the model
lemonade run user.starcoder2-15b-q4_k_m.gguf-Q4_K_M
List all available models
lemonade list
StarCoder2-15B model is a 15B parameter model trained on 600+ programming languages from The Stack v2, with opt-out requests excluded. The model uses Grouped Query Attention, a context window of 16,384 tokens with a sliding window attention of 4,096 tokens, and was trained using the Fill-in-the-Middle objective on 4+ trillion tokens. The model was trained with NVIDIA NeMo™ Framework using the NVIDIA Eos Supercomputer built with NVIDIA DGX H100 systems.
Project Website: bigcode-project.org Paper: Link Point of Contact: contact@bigcode-project.org Languages: 600+ Programming languages Use Intended use The model was trained on GitHub code as well as additional selected data sources such as Arxiv and Wikipedia. As such it is not an instruction model and commands like "Write a function that computes the square root." do not work well.
Generation Here are some examples to get started with the model. You can find a script for fine-tuning in StarCoder2's GitHub repository.
- Downloads last month
- 27
4-bit