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 "bluetrace/SERA-14B-FP8" \
    --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": "bluetrace/SERA-14B-FP8",
		"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 "bluetrace/SERA-14B-FP8" \
        --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": "bluetrace/SERA-14B-FP8",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

SERA-14B-FP8

FP8 quantization of allenai/SERA-14B, produced with llmcompressor and validated with vLLM.

Quantization Details

Parameter Value
Method FP8 (W8A8) via llmcompressor oneshot
Targets All Linear layers except lm_head
Calibration dataset allenai/Sera-4.5A-Lite-T2
Calibration samples 512
Calibration sequence length 2048 tokens
llmcompressor version 0.9.0.2
Hardware Local GPU (RTX 5080, 16 GB VRAM)
Model size (uploaded) ~16.2 GB (4 safetensors shards)

GPU Stats

  • 1x RTX 5080
  • Total time: 1 hr

Usage

from vllm import LLM, SamplingParams

llm = LLM(model="bluetrace/SERA-14B-FP8", max_model_len=16384)
params = SamplingParams(temperature=0.7, max_tokens=512)

outputs = llm.generate(
    [{"role": "user", "content": "Explain quantum entanglement simply."}],
    params,
)
print(outputs[0].outputs[0].text)

Validation

After quantization the model was loaded into vLLM and a test chat completion request was sent.

Limitations

  • Quality degradation relative to the BF16 base model has not been formally benchmarked. FP8 quantization with 512 calibration samples is generally low-loss for instruction-tuned models, but edge cases may differ.
  • Maximum recommended context length is 16 384 tokens on a single L40S GPU.
  • The lm_head layer is kept in BF16 (not quantized) to preserve output distribution.

Related

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

Model tree for bluetrace/SERA-14B-FP8

Base model

allenai/SERA-14B
Quantized
(4)
this model

Dataset used to train bluetrace/SERA-14B-FP8