GigaChat4 37B Abliterated
Open the 4-bit model in LM Studio · 21.66 GB
Trial9 v2 is a modified GigaChat4-37B-A4B checkpoint. The main revision contains the full Hugging Face checkpoint. The mlx-4bit revision contains an Apple Silicon build converted from the Trial9 v2 NF4 export and requantized to MLX affine 4-bit.
Downloads
| Version | Weight size | Files |
|---|---|---|
| MLX 4-bit for Apple Silicon and LM Studio | 21.64 GB | Open MLX weights |
| Full BF16 for Transformers | ~75 GB | Open BF16 files |
The BF16 checkpoint is available in full on main (15 shards, 74.95 GB). The MLX 4-bit revision contains all 33 shards (21.64 GB).
hf download agibeliver/GigaChat4-37B-Abliterated --revision mlx-4bit --local-dir ./gigachat4-mlx
Full checkpoint
Download the main revision with hf download agibeliver/GigaChat4-37B-Abliterated --revision main --local-dir ./gigachat4-full. Allow roughly 70 GiB of storage for the checkpoint and additional GPU memory for inference and the context cache.
Use Transformers 5.24.1 and a CUDA-enabled PyTorch installation. Review the repository's custom modeling code before enabling it.
from transformers import AutoModelForCausalLM, AutoTokenizer
path = "./gigachat4-full"
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
path, trust_remote_code=True, dtype="bfloat16", device_map="auto"
)
inputs = tokenizer.apply_chat_template(
[{"role": "user", "content": "Сколько будет 17 × 24?"}],
add_generation_prompt=True, reasoning=False,
tokenize=True, return_dict=True, return_tensors="pt",
).to(model.device)
output = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
Apple Silicon, MLX 4-bit
pip install mlx==0.32.5 mlx-lm==0.32.2 transformers==5.24.1
hf download agibeliver/GigaChat4-37B-Abliterated --revision mlx-4bit --local-dir ./gigachat4-mlx
cp ./gigachat4-mlx/gigachat4.py "$(python -c 'from pathlib import Path; import mlx_lm.models as m; print(Path(m.__file__).parent)')/gigachat4.py"
mlx_lm.generate --model ./gigachat4-mlx --prompt 'Сколько будет 17 × 24?' --chat-template-config '{"reasoning": false}'
For LM Studio MLX runtime 1.15.2, install the included gigachat4.py into the active runtime and set Max Concurrent Predictions to 1. Step-by-step LM Studio setup.