inference-optimization / GLM-5.2-0.8B-A0.8B

huggingface.co
Total runs: 4.5K
24-hour runs: 0
7-day runs: -978
30-day runs: -962
Model's Last Updated: July 02 2026
text-generation

Introduction of GLM-5.2-0.8B-A0.8B

Model Details of GLM-5.2-0.8B-A0.8B

GLM-5.2-0.8B-A0.8B

This is a tiny version of zai-org/GLM-5.2 created for testing and development.

Model Details
  • Base Model : zai-org/GLM-5.2
  • Architecture : glm_moe_dsa (GLM MoE with DeepSeek Sparse Attention)
  • Total Parameters : 0.85B
  • Activated Parameters : ~0.77B
Configuration Changes

The following parameters were reduced from the original model:

Parameter Original Tiny
num_hidden_layers 78 6
hidden_size 6144 2048
intermediate_size 12288 4096
num_attention_heads 64 16
num_key_value_heads 64 16
n_routed_experts 256 8
num_experts_per_tok 8 2
moe_intermediate_size 2048 512
kv_lora_rank 512 128
q_lora_rank 2048 512
v_head_dim 256 128
index_n_heads 32 8
index_head_dim 128 64
first_k_dense_replace 3 2
Checkpoint Structure

Single safetensors file containing 194 tensors in float32. Layers 0-1 have dense MLP, layers 2-5 have MoE MLP. Layers 0-2 have full DSA indexer weights, layers 3-5 use shared indexer.

Usage
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("inference-optimization/GLM-5.2-0.8B-A0.8B", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("inference-optimization/GLM-5.2-0.8B-A0.8B")

input_ids = tokenizer("According to all known laws", return_tensors="pt").input_ids.to(model.device)
output = model.generate(input_ids, max_new_tokens=20)
print(tokenizer.decode(output[0]))
Creation Process
  1. Inspected original GLM-5.2 config (78 layers, 256 experts, hidden_size=6144)
  2. Reduced all dimensions to target ~1B parameters while preserving architecture
  3. Created model with float32 dtype for training stability
  4. Fine-tuned on copypasta dataset to perplexity ~1.0
  5. Validated checkpoint structure matches original model naming conventions
  6. Validated model loads, inferences, and generates correctly
Validation Output
Success: 1.0000379085540771 <= 10.0
Generating sample text:
According to all known laws of aviation, there is no way a bee should be able to fly.
Notes
  • The model uses float32 dtype (original uses bfloat16) to ensure proper initialization and training of the tiny model
  • Architecture preserves both dense and sparse MLP layer types, MLA attention with compressed Q/KV, and DSA indexer with full/shared patterns
  • The model has been fine-tuned on a toy dataset and is intended for testing purposes only

Runs of inference-optimization GLM-5.2-0.8B-A0.8B on huggingface.co

4.5K
Total runs
0
24-hour runs
360
3-day runs
-978
7-day runs
-962
30-day runs

More Information About GLM-5.2-0.8B-A0.8B huggingface.co Model

More GLM-5.2-0.8B-A0.8B license Visit here:

https://choosealicense.com/licenses/mit

GLM-5.2-0.8B-A0.8B huggingface.co

GLM-5.2-0.8B-A0.8B huggingface.co is an AI model on huggingface.co that provides GLM-5.2-0.8B-A0.8B's model effect (), which can be used instantly with this inference-optimization GLM-5.2-0.8B-A0.8B model. huggingface.co supports a free trial of the GLM-5.2-0.8B-A0.8B model, and also provides paid use of the GLM-5.2-0.8B-A0.8B. Support call GLM-5.2-0.8B-A0.8B model through api, including Node.js, Python, http.

inference-optimization GLM-5.2-0.8B-A0.8B online free

GLM-5.2-0.8B-A0.8B huggingface.co is an online trial and call api platform, which integrates GLM-5.2-0.8B-A0.8B's modeling effects, including api services, and provides a free online trial of GLM-5.2-0.8B-A0.8B, you can try GLM-5.2-0.8B-A0.8B online for free by clicking the link below.

inference-optimization GLM-5.2-0.8B-A0.8B online free url in huggingface.co:

https://huggingface.co/inference-optimization/GLM-5.2-0.8B-A0.8B

GLM-5.2-0.8B-A0.8B install

GLM-5.2-0.8B-A0.8B is an open source model from GitHub that offers a free installation service, and any user can find GLM-5.2-0.8B-A0.8B on GitHub to install. At the same time, huggingface.co provides the effect of GLM-5.2-0.8B-A0.8B install, users can directly use GLM-5.2-0.8B-A0.8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

GLM-5.2-0.8B-A0.8B install url in huggingface.co:

https://huggingface.co/inference-optimization/GLM-5.2-0.8B-A0.8B

Url of GLM-5.2-0.8B-A0.8B

Provider of GLM-5.2-0.8B-A0.8B huggingface.co

inference-optimization
ORGANIZATIONS

Other API from inference-optimization