How to use from
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 "espressor/google.gemma-2b-it_W4A16" \
    --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": "espressor/google.gemma-2b-it_W4A16",
		"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 "espressor/google.gemma-2b-it_W4A16" \
        --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": "espressor/google.gemma-2b-it_W4A16",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

google/gemma-2b-it - W4A16 Compression

This is a compressed model using llmcompressor.

Compression Configuration

  • Base Model: google/gemma-2b-it
  • Compression Scheme: W4A16
  • Dataset: HuggingFaceH4/ultrachat_200k
  • Dataset Split: train_sft
  • Number of Samples: 512
  • Preprocessor: chat
  • Maximum Sequence Length: 8192

Sample Output

Prompt:

<bos><start_of_turn>user
Who is Alan Turing?<end_of_turn>

Output:

<bos><bos><start_of_turn>user
Who is Alan Turing?<end_of_turn>
Alan Turing was a British mathematician and computer scientist who made significant contributions to the fields of mathematics, computer science, and physics. He is considered one of the pioneers of computer science and a major figure in the history of artificial intelligence.

**Key Contributions:**

* **Coined the term "computer science"**: Turing was one of the first to use the term in a modern sense to refer to the study of the theoretical and practical principles of computation.
* **Developed the Turing machine**: This is a theoretical model of computation that is considered to be the most powerful known model of computation.
* **Pioneered research in artificial

Evaluation

Downloads last month
1
Safetensors
Model size
1B params
Tensor type
I64
·
I32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for espressor/google.gemma-2b-it_W4A16

Quantized
(38)
this model

Dataset used to train espressor/google.gemma-2b-it_W4A16