Instructions to use StarkWizard/codellama-cairo-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StarkWizard/codellama-cairo-instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="StarkWizard/codellama-cairo-instruct-GGUF")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("StarkWizard/codellama-cairo-instruct-GGUF") model = AutoModelForCausalLM.from_pretrained("StarkWizard/codellama-cairo-instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use StarkWizard/codellama-cairo-instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
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 StarkWizard/codellama-cairo-instruct-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
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 StarkWizard/codellama-cairo-instruct-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
Use Docker
docker model run hf.co/StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use StarkWizard/codellama-cairo-instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "StarkWizard/codellama-cairo-instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StarkWizard/codellama-cairo-instruct-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
- SGLang
How to use StarkWizard/codellama-cairo-instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "StarkWizard/codellama-cairo-instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StarkWizard/codellama-cairo-instruct-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "StarkWizard/codellama-cairo-instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StarkWizard/codellama-cairo-instruct-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use StarkWizard/codellama-cairo-instruct-GGUF with Ollama:
ollama run hf.co/StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
- Unsloth Studio
How to use StarkWizard/codellama-cairo-instruct-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 StarkWizard/codellama-cairo-instruct-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 StarkWizard/codellama-cairo-instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for StarkWizard/codellama-cairo-instruct-GGUF to start chatting
- Docker Model Runner
How to use StarkWizard/codellama-cairo-instruct-GGUF with Docker Model Runner:
docker model run hf.co/StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
- Lemonade
How to use StarkWizard/codellama-cairo-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull StarkWizard/codellama-cairo-instruct-GGUF:Q8_0
Run and chat with the model
lemonade run user.codellama-cairo-instruct-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
Upload tokenizer_config.json with huggingface_hub
Browse files- tokenizer_config.json +84 -0
tokenizer_config.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": true,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"0": {
|
| 6 |
+
"content": "<unk>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"1": {
|
| 14 |
+
"content": "<s>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"2": {
|
| 22 |
+
"content": "</s>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"32007": {
|
| 30 |
+
"content": "▁<PRE>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"32008": {
|
| 38 |
+
"content": "▁<SUF>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"32009": {
|
| 46 |
+
"content": "▁<MID>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"32010": {
|
| 54 |
+
"content": "▁<EOT>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"additional_special_tokens": [
|
| 63 |
+
"▁<PRE>",
|
| 64 |
+
"▁<MID>",
|
| 65 |
+
"▁<SUF>",
|
| 66 |
+
"▁<EOT>"
|
| 67 |
+
],
|
| 68 |
+
"bos_token": "<s>",
|
| 69 |
+
"clean_up_tokenization_spaces": false,
|
| 70 |
+
"eos_token": "</s>",
|
| 71 |
+
"eot_token": "▁<EOT>",
|
| 72 |
+
"fill_token": "<FILL_ME>",
|
| 73 |
+
"legacy": null,
|
| 74 |
+
"middle_token": "▁<MID>",
|
| 75 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 76 |
+
"pad_token": "▁***",
|
| 77 |
+
"prefix_token": "▁<PRE>",
|
| 78 |
+
"sp_model_kwargs": {},
|
| 79 |
+
"suffix_first": false,
|
| 80 |
+
"suffix_token": "▁<SUF>",
|
| 81 |
+
"tokenizer_class": "CodeLlamaTokenizer",
|
| 82 |
+
"unk_token": "<unk>",
|
| 83 |
+
"use_default_system_prompt": false
|
| 84 |
+
}
|