Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nqd145
/
Gemma-4-E2B-it-abliterated-litertlm

Text Generation
Transformers
LiteRT-LM
LiteRT
English
gemma
abliterated
Model card Files Files and versions
xet
Community
5

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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

vision_backend is not available

#5 opened about 1 month ago by
MahoEmpire

Best way to convert safetensors to litertlm

🔥 2
#4 opened about 2 months ago by
darahask

Upload Gemma-4-E2B-it-abliterated.litertlm

#3 opened 2 months ago by
chaitu4765

INT4 ?

#2 opened 2 months ago by
Handyfff

Can we please get Gemma-4-E4B-it-abliterated-litertlm

#1 opened 2 months ago by
sakumaXIII
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs