Text Generation
Transformers
Safetensors
llama
quantized
fp8
sglang
nanbeige
conversational
text-generation-inference
compressed-tensors
Instructions to use ProCreations/Nanbeige4.3-33B-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProCreations/Nanbeige4.3-33B-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ProCreations/Nanbeige4.3-33B-FP8") 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("ProCreations/Nanbeige4.3-33B-FP8") model = AutoModelForCausalLM.from_pretrained("ProCreations/Nanbeige4.3-33B-FP8", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ProCreations/Nanbeige4.3-33B-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ProCreations/Nanbeige4.3-33B-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ProCreations/Nanbeige4.3-33B-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ProCreations/Nanbeige4.3-33B-FP8
- SGLang
How to use ProCreations/Nanbeige4.3-33B-FP8 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 "ProCreations/Nanbeige4.3-33B-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": "ProCreations/Nanbeige4.3-33B-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 "ProCreations/Nanbeige4.3-33B-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": "ProCreations/Nanbeige4.3-33B-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ProCreations/Nanbeige4.3-33B-FP8 with Docker Model Runner:
docker model run hf.co/ProCreations/Nanbeige4.3-33B-FP8
Download READY.json from ProCreations/Nanbeige4.3-33B-FP8: direct link, hf CLI and curl.
- Browser
- Download file 2.75 kB
-
https://huggingface.co/ProCreations/Nanbeige4.3-33B-FP8/resolve/main/READY.json
- Command line
-
hf download hf://ProCreations/Nanbeige4.3-33B-FP8/READY.json
-
curl -L -o READY.json https://huggingface.co/ProCreations/Nanbeige4.3-33B-FP8/resolve/main/READY.json
2.75 kB
| { | |
| "artifact": "fp8-block-calib-v1", | |
| "state": "candidate_export_complete_not_quality_certified", | |
| "release_approved": false, | |
| "generated_at": 1792955414.6988907, | |
| "source_revision": "c1093c501cc6460427c0ac634db7223d0450c0ee", | |
| "calibration": "calib/v1", | |
| "calibration_tokens": 1086255, | |
| "calibration_manifest_sha256": "4305272fa895081ac90038f656cf3eec2e40cedf17edc3110e459304abc12191", | |
| "kv_scales_embedded": false, | |
| "kv_scale_tensors": 0, | |
| "tensor_bytes": 35516330752, | |
| "size_bytes": 35536295398, | |
| "weight_identity": { | |
| "config_sha256": "e33990cbaf0e1cb7e261dee24c373e62fc8c1daa384e1a4787890adb5c9ea127", | |
| "shards": { | |
| "model-00001-of-00010.safetensors": { | |
| "bytes": 2392850560, | |
| "header_sha256": "3a8770823746345d918783481d68abcb81703316a47d138f0b89987c7d0691c3" | |
| }, | |
| "model-00002-of-00010.safetensors": { | |
| "bytes": 3890475920, | |
| "header_sha256": "703b4471c6234acfada3789c1c8be9e28a63aedec476ad6a215ae1fab3bc32ff" | |
| }, | |
| "model-00003-of-00010.safetensors": { | |
| "bytes": 3978996144, | |
| "header_sha256": "577f5f4d2262d840c61b44957fb5f2f9ec20d3b742a1b7e3d59e9a1bf03e7bdf" | |
| }, | |
| "model-00004-of-00010.safetensors": { | |
| "bytes": 3978996248, | |
| "header_sha256": "30dbf000f6a1f9abcceb3604456cac7bf884c2c29637501dcceee171a801c201" | |
| }, | |
| "model-00005-of-00010.safetensors": { | |
| "bytes": 3861511600, | |
| "header_sha256": "00525c9e55f7a1035ce9894c408e696fa5caf5f610c972b478f6869e38ec1414" | |
| }, | |
| "model-00006-of-00010.safetensors": { | |
| "bytes": 3978996256, | |
| "header_sha256": "e24674414432f5df3dcc13f6847e3b216fa0a1accd1a2bdd99304afc4319b3cb" | |
| }, | |
| "model-00007-of-00010.safetensors": { | |
| "bytes": 3978996256, | |
| "header_sha256": "e9c8c425b5a8c23f6cb36ce4cde3735eb780b528145b8a842499b1aa10eaa185" | |
| }, | |
| "model-00008-of-00010.safetensors": { | |
| "bytes": 3861511600, | |
| "header_sha256": "cbb0f0954f050630ff3217b7cfc3b549a2d90df02c5969b643f2d67c69800855" | |
| }, | |
| "model-00009-of-00010.safetensors": { | |
| "bytes": 3978996256, | |
| "header_sha256": "27ac97ea0ff179c8b9f736e39ad77ab899ff56fe7d83fc0e567b0ebc3d971bb7" | |
| }, | |
| "model-00010-of-00010.safetensors": { | |
| "bytes": 1615095416, | |
| "header_sha256": "214b6dcf0af6ed100ebf7d2fe56e59a603bc7dee76af8ed8e596dfba39080080" | |
| } | |
| } | |
| }, | |
| "weight_identity_scope": "config SHA256, shard byte sizes and header SHA256 only; not tensor payload hashes", | |
| "weight_identity_sha256": "29daeb02e61f88d52a495f5bbc131178986ae32363bcad791eb9af65c3d84506", | |
| "runtime": "SGLang 0.5.21 / SM120; see workstream STATUS.md for measured per-flag gates", | |
| "explicit_bfloat16_kv": "weight-only control; unit scales" | |
| } |