Instructions to use KOOWEEYUS/BlackSheep with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use KOOWEEYUS/BlackSheep with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="KOOWEEYUS/BlackSheep", filename="Rebel-Q6_K.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 KOOWEEYUS/BlackSheep with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf KOOWEEYUS/BlackSheep:Q6_K # Run inference directly in the terminal: llama-cli -hf KOOWEEYUS/BlackSheep:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf KOOWEEYUS/BlackSheep:Q6_K # Run inference directly in the terminal: llama-cli -hf KOOWEEYUS/BlackSheep:Q6_K
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 KOOWEEYUS/BlackSheep:Q6_K # Run inference directly in the terminal: ./llama-cli -hf KOOWEEYUS/BlackSheep:Q6_K
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 KOOWEEYUS/BlackSheep:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf KOOWEEYUS/BlackSheep:Q6_K
Use Docker
docker model run hf.co/KOOWEEYUS/BlackSheep:Q6_K
- LM Studio
- Jan
- Ollama
How to use KOOWEEYUS/BlackSheep with Ollama:
ollama run hf.co/KOOWEEYUS/BlackSheep:Q6_K
- Unsloth Studio new
How to use KOOWEEYUS/BlackSheep 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 KOOWEEYUS/BlackSheep 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 KOOWEEYUS/BlackSheep to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for KOOWEEYUS/BlackSheep to start chatting
- Docker Model Runner
How to use KOOWEEYUS/BlackSheep with Docker Model Runner:
docker model run hf.co/KOOWEEYUS/BlackSheep:Q6_K
- Lemonade
How to use KOOWEEYUS/BlackSheep with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KOOWEEYUS/BlackSheep:Q6_K
Run and chat with the model
lemonade run user.BlackSheep-Q6_K
List all available models
lemonade list
| FROM ./Rebel-Q6_K.gguf | |
| # set the temperature to 1 [higher is more creative, lower is more coherent] | |
| PARAMETER temperature 0.142 | |
| PARAMETER num_ctx 8192 | |
| # PARAMETER num_gpu 42 | |
| # PARAMETER num_thread 2 | |
| PARAMETER stop "</s>" | |
| PARAMETER stop "<s>" | |
| PARAMETER stop "<br/>" | |
| PARAMETER stop "<br>" | |
| PARAMETER stop "<|im_start|>" | |
| PARAMETER stop "<|user|>" | |
| PARAMETER stop "<|end|>" | |
| PARAMETER stop "<|im_end|>" | |
| PARAMETER stop "<|`end `|>" | |
| PARAMETER stop "<|` end `|>" | |
| PARAMETER stop "<|` end`|>" | |
| PARAMETER stop "<|`---`|>" | |
| PARAMETER stop "<|endoftext|>" | |
| PARAMETER stop "<|`EndBlackSheepText `|>" | |
| PARAMETER stop " | |
| " | |
| PARAMETER stop "---" | |
| PARAMETER stop "<|End|>" | |
| PARAMETER stop "<|End>" | |
| PARAMETER stop "<|End" | |
| PARAMETER stop "<|" | |
| PARAMETER stop "\n\n\n" | |
| PARAMETER stop "BEGININPUT" | |
| PARAMETER stop "ENDINPUT" | |
| PARAMETER stop "BEGINCONTEXT" | |
| PARAMETER stop "ENDCONTEXT" | |
| PARAMETER stop "BEGININSTRUCTION" | |
| PARAMETER stop "ENDINSTRUCTION" | |
| PARAMETER stop "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request." | |
| PARAMETER stop "### Input:" | |
| PARAMETER stop "### Instruction" | |
| # PARAMETER num_predict -2 | |
| PARAMETER stop "<|start_header_id|>" | |
| PARAMETER stop "<|end_header_id|>" | |
| PARAMETER stop "<|eot_id|>" | |
| PARAMETER stop "<|reserved_special_token" | |
| PARAMETER stop "<|system|>" | |
| PARAMETER stop " \`\`\` " | |
| TEMPLATE """ | |
| Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. | |
| {{ if .System }}### Instruction: | |
| {{ .System }}{{ end }} | |
| Dont Be A LAZY FUCK! | |
| {{ if .Prompt }}### Input: | |
| {{ .Prompt }}{{ end }} | |
| ### Response: | |
| <|`BlackSheep`|> | |
| {{ .Response }} | |
| """ |