Instructions to use nqd145/Gemma-4-E2B-it-abliterated-litertlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nqd145/Gemma-4-E2B-it-abliterated-litertlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nqd145/Gemma-4-E2B-it-abliterated-litertlm")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nqd145/Gemma-4-E2B-it-abliterated-litertlm", dtype="auto") - LiteRT-LM
How to use nqd145/Gemma-4-E2B-it-abliterated-litertlm with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli litert-lm run \ --from-huggingface-repo=nqd145/Gemma-4-E2B-it-abliterated-litertlm \ model.litertlm \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nqd145/Gemma-4-E2B-it-abliterated-litertlm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nqd145/Gemma-4-E2B-it-abliterated-litertlm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nqd145/Gemma-4-E2B-it-abliterated-litertlm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nqd145/Gemma-4-E2B-it-abliterated-litertlm
- SGLang
How to use nqd145/Gemma-4-E2B-it-abliterated-litertlm 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 "nqd145/Gemma-4-E2B-it-abliterated-litertlm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nqd145/Gemma-4-E2B-it-abliterated-litertlm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "nqd145/Gemma-4-E2B-it-abliterated-litertlm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nqd145/Gemma-4-E2B-it-abliterated-litertlm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nqd145/Gemma-4-E2B-it-abliterated-litertlm with Docker Model Runner:
docker model run hf.co/nqd145/Gemma-4-E2B-it-abliterated-litertlm
Upload Gemma-4-E2B-it-abliterated.litertlm with huggingface_hub
Browse files- .gitattributes +1 -0
- Gemma-4-E2B-it-abliterated.litertlm +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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-4-E2B-it-abliterated.litertlm filter=lfs diff=lfs merge=lfs -text
|
Gemma-4-E2B-it-abliterated.litertlm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bb979594d6fd1a958c7f9c5dbfbdf9d1312ee3eaae009d298b6f19194392953
|
| 3 |
+
size 5065244672
|