Instructions to use MosRat/got_decoder_gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MosRat/got_decoder_gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MosRat/got_decoder_gguf", filename="got_decoder-q2_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 MosRat/got_decoder_gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MosRat/got_decoder_gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MosRat/got_decoder_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 MosRat/got_decoder_gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MosRat/got_decoder_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 MosRat/got_decoder_gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MosRat/got_decoder_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 MosRat/got_decoder_gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MosRat/got_decoder_gguf:Q4_K_M
Use Docker
docker model run hf.co/MosRat/got_decoder_gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use MosRat/got_decoder_gguf with Ollama:
ollama run hf.co/MosRat/got_decoder_gguf:Q4_K_M
- Unsloth Studio new
How to use MosRat/got_decoder_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 MosRat/got_decoder_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 MosRat/got_decoder_gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MosRat/got_decoder_gguf to start chatting
- Docker Model Runner
How to use MosRat/got_decoder_gguf with Docker Model Runner:
docker model run hf.co/MosRat/got_decoder_gguf:Q4_K_M
- Lemonade
How to use MosRat/got_decoder_gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MosRat/got_decoder_gguf:Q4_K_M
Run and chat with the model
lemonade run user.got_decoder_gguf-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,46 +5,7 @@ tags:
|
|
| 5 |
- gguf-my-repo
|
| 6 |
---
|
| 7 |
|
| 8 |
-
# MosRat/got_decoder-
|
| 9 |
-
|
| 10 |
-
Refer to the [original model card](https://huggingface.co/MosRat/got_decoder) for more details on the model.
|
| 11 |
|
| 12 |
-
## Use with llama.cpp
|
| 13 |
-
Install llama.cpp through brew (works on Mac and Linux)
|
| 14 |
|
| 15 |
-
```bash
|
| 16 |
-
brew install llama.cpp
|
| 17 |
-
|
| 18 |
-
```
|
| 19 |
-
Invoke the llama.cpp server or the CLI.
|
| 20 |
-
|
| 21 |
-
### CLI:
|
| 22 |
-
```bash
|
| 23 |
-
llama-cli --hf-repo MosRat/got_decoder-Q4_K_M-GGUF --hf-file got_decoder-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 24 |
-
```
|
| 25 |
-
|
| 26 |
-
### Server:
|
| 27 |
-
```bash
|
| 28 |
-
llama-server --hf-repo MosRat/got_decoder-Q4_K_M-GGUF --hf-file got_decoder-q4_k_m.gguf -c 2048
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
| 32 |
-
|
| 33 |
-
Step 1: Clone llama.cpp from GitHub.
|
| 34 |
-
```
|
| 35 |
-
git clone https://github.com/ggerganov/llama.cpp
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
| 39 |
-
```
|
| 40 |
-
cd llama.cpp && LLAMA_CURL=1 make
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
Step 3: Run inference through the main binary.
|
| 44 |
-
```
|
| 45 |
-
./llama-cli --hf-repo MosRat/got_decoder-Q4_K_M-GGUF --hf-file got_decoder-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 46 |
-
```
|
| 47 |
-
or
|
| 48 |
-
```
|
| 49 |
-
./llama-server --hf-repo MosRat/got_decoder-Q4_K_M-GGUF --hf-file got_decoder-q4_k_m.gguf -c 2048
|
| 50 |
-
```
|
|
|
|
| 5 |
- gguf-my-repo
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# MosRat/got_decoder-GGUF
|
| 9 |
+
See (Github)[https://github.com/MosRat/got.cpp] for more details.
|
|
|
|
| 10 |
|
|
|
|
|
|
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|