Instructions to use TheBloke/rocket-3B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/rocket-3B-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/rocket-3B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TheBloke/rocket-3B-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 TheBloke/rocket-3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/rocket-3B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TheBloke/rocket-3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/rocket-3B-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 TheBloke/rocket-3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBloke/rocket-3B-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 TheBloke/rocket-3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBloke/rocket-3B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheBloke/rocket-3B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheBloke/rocket-3B-GGUF with Ollama:
ollama run hf.co/TheBloke/rocket-3B-GGUF:Q4_K_M
- Unsloth Studio
How to use TheBloke/rocket-3B-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 TheBloke/rocket-3B-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 TheBloke/rocket-3B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheBloke/rocket-3B-GGUF to start chatting
- Docker Model Runner
How to use TheBloke/rocket-3B-GGUF with Docker Model Runner:
docker model run hf.co/TheBloke/rocket-3B-GGUF:Q4_K_M
- Lemonade
How to use TheBloke/rocket-3B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBloke/rocket-3B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.rocket-3B-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Error when loading rocket-3B-GGUF using text-generation-webui
When loading this model I am getting an error:
Traceback (most recent call last):
File "S:\oobabooga_windows\text-generation-webui\modules\ui_model_menu.py", line 209, in load_model_wrapper
shared.model, shared.tokenizer = load_model(shared.model_name, loader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "S:\oobabooga_windows\text-generation-webui\modules\models.py", line 85, in load_model
output = load_func_maploader
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "S:\oobabooga_windows\text-generation-webui\modules\models.py", line 249, in llamacpp_loader
model, tokenizer = LlamaCppModel.from_pretrained(model_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "S:\oobabooga_windows\text-generation-webui\modules\llamacpp_model.py", line 90, in from_pretrained
result.model = Llama(**params)
^^^^^^^^^^^^^^^
File "S:\oobabooga_windows\text-generation-webui\installer_files\env\Lib\site-packages\llama_cpp_cuda\llama.py", line 365, in init
assert self.model is not None
^^^^^^^^^^^^^^^^^^^^^^
AssertionError
I get the same errors in text-generation-webui. Please guide us.
This is the error I got
GGML_ASSERT: /home/runner/work/llama-cpp-python-cuBLAS-wheels/llama-cpp-python-cuBLAS-wheels/vendor/llama.cpp/ggml.c:13711: tensor->src[0] == NULL || tensor->src[0]->backend == GGML_BACKEND_CPU
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
- Avoid using `tokenizers` before the fork if possible
- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No stack.
The program is not being run.
/arrow/cpp/src/arrow/filesystem/s3fs.cc:2829: arrow::fs::FinalizeS3 was not called even though S3 was initialized. This could lead to a segmentation fault at exit
I downloaded Q6_K version.