Text Generation
Transformers
Safetensors
gemma3_text
heretic
uncensored
decensored
abliterated
finetune
conversational
text-generation-inference
Instructions to use DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored") model = AutoModelForCausalLM.from_pretrained("DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored
- SGLang
How to use DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored 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 "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored with Docker Model Runner:
docker model run hf.co/DavidAU/gemma-3-1b-it-heretic-abliterated-uncensored
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,6 +10,9 @@ tags:
|
|
| 10 |
- finetune
|
| 11 |
---
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
<h2>gemma-3-1b-it-heretic-abliterated-uncensored</h2>
|
| 14 |
|
| 15 |
Ablitered/uncensored by [Heretic](https://github.com/p-e-w/heretic) v1.0.1
|
|
|
|
| 10 |
- finetune
|
| 11 |
---
|
| 12 |
|
| 13 |
+
<small><B style="font-family: 'Arial Black', sans-serif; font-weight: 900; color: #f1c40f; text-decoration: none; text-shadow: 1px 1px 0 #d35400, 2px 2px 0 #d35400, 3px 3px 0 #d35400, 4px 4px 0 #d35400, 5px 5px 0 #d35400, 6px 6px 7px rgba(0,0,0,0.4);">[DavidAU]</B> <a href="https://huggingface.co/DavidAU" target="_blank" style="padding-left:5px">FOLLOW</a> | <a href="https://huggingface.co/DavidAU" target="_blank">ALL MODELS</a> | <a href="https://huggingface.co/DavidAU/collections" target="_blank">COLLECTIONS</a> | <a href="https://huggingface.co/models?sort=trending&search=DavidAU" target="_blank">TRENDING</a> | <a href="https://huggingface.co/DavidAU/support" target="_blank">FAQs</a> | <a href="https://huggingface.co/DavidAU/support" target="_blank">SUPPORT</a>
|
| 14 |
+
| <a href="https://buymeacoffee.com/davidbelton" target="_blank">Buy Me A Coffee (😁)</a></small>
|
| 15 |
+
|
| 16 |
<h2>gemma-3-1b-it-heretic-abliterated-uncensored</h2>
|
| 17 |
|
| 18 |
Ablitered/uncensored by [Heretic](https://github.com/p-e-w/heretic) v1.0.1
|