Text Generation
Transformers
Safetensors
English
Chinese
glm_moe_dsa
glm
glm-5.2
mixture-of-experts
Mixture of Experts
fp8
block-fp8
e4m3
quantized
de-risked
red-teaming
security-research
adversarial-testing
enterprise
conversational
Instructions to use Blackfrost-Research/GLM-5.2-DERISKED-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Blackfrost-Research/GLM-5.2-DERISKED-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Blackfrost-Research/GLM-5.2-DERISKED-FP8") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Blackfrost-Research/GLM-5.2-DERISKED-FP8") model = AutoModelForCausalLM.from_pretrained("Blackfrost-Research/GLM-5.2-DERISKED-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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Blackfrost-Research/GLM-5.2-DERISKED-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Blackfrost-Research/GLM-5.2-DERISKED-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": "Blackfrost-Research/GLM-5.2-DERISKED-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Blackfrost-Research/GLM-5.2-DERISKED-FP8
- SGLang
How to use Blackfrost-Research/GLM-5.2-DERISKED-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 "Blackfrost-Research/GLM-5.2-DERISKED-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": "Blackfrost-Research/GLM-5.2-DERISKED-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 "Blackfrost-Research/GLM-5.2-DERISKED-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": "Blackfrost-Research/GLM-5.2-DERISKED-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Blackfrost-Research/GLM-5.2-DERISKED-FP8 with Docker Model Runner:
docker model run hf.co/Blackfrost-Research/GLM-5.2-DERISKED-FP8
Request commercial access
GLM-5.2-DERISKED-FP8 is released under a Blackfrost commercial licence and is reviewed manually. Access is granted to security firms, red teams, AI-safety labs, and enterprise research groups. Tell us who you are and what you are evaluating; we review every request individually. Access is granted automatically on purchase at redpillreader.com/models; requests without a purchase are not approved.
Log in or Sign Up to review the conditions and access this model content.
Gated model You can list files but not access them
Preview of files found in this repository
- deployment-kit
- 1.64 kB
- 15 kB
- 5.08 kB
- 30.7 kB
- 194 Bytes
- 6.44 GB xet
- 3.22 GB xet
- 3.38 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 2.5 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet
- 6.44 GB xet
- 3.22 GB xet