Instructions to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF", filename="gemma-3-1b-it-abliterated.Q5_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-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 MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_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 MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_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 MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
- Ollama
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
- Unsloth Studio
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-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 MaziyarPanahi/gemma-3-1b-it-abliterated-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 MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
- Lemonade
How to use MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.gemma-3-1b-it-abliterated-GGUF-Q5_K_M
List all available models
lemonade list
Upload folder using huggingface_hub (#1)
Browse files- 8ab1251550e2919fcaec14c831f55977c82b0634026fe4092e2cb664115728d6 (56ef15ab4af75e74e15a03864f7ea1a838a21488)
- 31700679f0948005747bca39532907a7401b1ea28fa5abc31e50b631c06d0b0f (0b580e76abb71b2aaf3c6eaf1c0dc9007c7d29e4)
- c766af73518609ec22e728bebbc2e3dd5b7985cef56c84c0302a21671112538d (fed2b340df9a1faef845c686a847a4d12091a185)
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
gemma-3-1b-it-abliterated.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gemma-3-1b-it-abliterated.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gemma-3-1b-it-abliterated.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gemma-3-1b-it-abliterated.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gemma-3-1b-it-abliterated.fp16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: mlabonne/gemma-3-1b-it-abliterated
|
| 3 |
+
inference: false
|
| 4 |
+
model_creator: mlabonne
|
| 5 |
+
model_name: gemma-3-1b-it-abliterated-GGUF
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
quantized_by: MaziyarPanahi
|
| 8 |
+
tags:
|
| 9 |
+
- quantized
|
| 10 |
+
- 2-bit
|
| 11 |
+
- 3-bit
|
| 12 |
+
- 4-bit
|
| 13 |
+
- 5-bit
|
| 14 |
+
- 6-bit
|
| 15 |
+
- 8-bit
|
| 16 |
+
- GGUF
|
| 17 |
+
- text-generation
|
| 18 |
+
---
|
| 19 |
+
# [MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF](https://huggingface.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF)
|
| 20 |
+
- Model creator: [mlabonne](https://huggingface.co/mlabonne)
|
| 21 |
+
- Original model: [mlabonne/gemma-3-1b-it-abliterated](https://huggingface.co/mlabonne/gemma-3-1b-it-abliterated)
|
| 22 |
+
|
| 23 |
+
## Description
|
| 24 |
+
[MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF](https://huggingface.co/MaziyarPanahi/gemma-3-1b-it-abliterated-GGUF) contains GGUF format model files for [mlabonne/gemma-3-1b-it-abliterated](https://huggingface.co/mlabonne/gemma-3-1b-it-abliterated).
|
| 25 |
+
|
| 26 |
+
### About GGUF
|
| 27 |
+
|
| 28 |
+
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
|
| 29 |
+
|
| 30 |
+
Here is an incomplete list of clients and libraries that are known to support GGUF:
|
| 31 |
+
|
| 32 |
+
* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
|
| 33 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
| 34 |
+
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
|
| 35 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
|
| 36 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
|
| 37 |
+
* [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
|
| 38 |
+
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
| 39 |
+
* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
|
| 40 |
+
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
| 41 |
+
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
|
| 42 |
+
|
| 43 |
+
## Special thanks
|
| 44 |
+
|
| 45 |
+
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54fcd6f2d511084f585b894c120547a36077fa478c56573baf5c63c058215db4
|
| 3 |
+
size 851345376
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a7312877b7d76144142677210c4f712457e5cae5235da19933a0266b9d64d14
|
| 3 |
+
size 836399328
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2d6fc7839cad2290dcdb0ea728b11dc8be85fc80438e8fdf5c160ad78e76bed
|
| 3 |
+
size 1011738336
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c90513a023e39f738cf5aacffc27a3c3931aee2b01e174d8893fc46f77b16fdf
|
| 3 |
+
size 1069306080
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f8eaac6a5de55b8fe96d1929409cf5f34de39d2a265923c3b55282ec86f6e6a
|
| 3 |
+
size 2006573280
|