rust library to write integer types of any bit length into a buffer - from `i1` to `i64`.
-
Updated
Jul 16, 2024 - Rust
8000
rust library to write integer types of any bit length into a buffer - from `i1` to `i64`.
Quantize TinyLlama-1.1B-Chat from PyTorch to CoreML (float16, int8, int4) for efficient on-device inference on iOS 18+.
🧬🔍 Vecgo is a pure Go, embeddable, hybrid vector database designed for high-performance production workloads. It combines commit-oriented durability with HNSW + DiskANN indexing for best-in-class performance.
Quantizes the unquantized LATCH-Qwen2.5-14B model to GGUF format with a strict perplexity delta constraint. Outputs a Markdown benchmark report comparing FP16 vs Q4_K_M accuracy.
Utilities to rewrite ONNX convolution patterns into MatMul f 7440 orms for optimal LLM-like int4 quantization (esp. Audio/Speech models).
Training-free fix for KV cache INT4 failures. Norm separation + per-channel quantization. Qwen2-7B: 744× improvement (ΔPPL +238 → +0.32). 12 models, 124M–40B. 4 lines of PyTorch.
PyTorch implementation of TRIAD-PTQ (Trace-Router-Interaction-Aware Decomposition) — weight-only INT3/INT4 PTQ for compact LLMs and edge CNNs/ViTs, with real benchmarks on SmolLM/TinyLlama/MobileNetV2/EfficientNet-B0/MobileViT-S.
row-major matmul optimization
Training-free INT3 KV cache quantization: 5.09× compression, ~10 lines of Python, <5% WikiText-2 ΔPPL on 8 of 8 open-weight Transformers (GPT-J 2021 → Gemma-4 2026). No calibration, no codebook, no rotation, no adapter. +2.4% decode overhead with torch.compile (no custom CUDA).
Block-scaled FP8 / FP4 / INT4 tensor primitive with Triton scaled-matmul at FP32 parity on H100. NumPy / PyTorch / MLX / JAX backends.
Backprop-free learning study: spiking (LIF) neurons + Forward-Forward + JEPA + int4 QAT, with a full ablation notebook.
Analyzes per-layer quantization sensitivity in GPT-2 across 9 quantization configs (INT8/INT6/INT5/INT4/INT3/INT2 with group-wise and per-tensor). Key findings: INT8-g32 achieves 1.8x compression with +0.13 perplexity; group-wise quantization reduces INT4 degradation by 99%; mlp_proj layers dominate sensitivity.
Empirical profiling of FP32, FP16, INT8, and INT4 quantization on GPT-2 and GPT-2-medium: throughput, decode latency, model memory, and perplexity across batch sizes 1–16. FP16 wins on throughput; INT4 wins on memory with negligible quality loss.
Run Tencent Hy3 (295B MoE, 21B active) on a consumer machine — pure C, experts streamed from NVMe
GLM-5.2, a 744 billion parameter mixture of experts model, in a pure C inference engine: quantized to int4, experts streamed from disk, deployed and benchmarked. Generates in 16 GB of RAM.
Benchmarks five KV cache quantization schemes (FP16→INT4) on GPT-2 with per-layer sensitivity analysis. Measures memory reduction vs perplexity tradeoff across sequence lengths without modifying model weights.
Modly extension for research-only Cube3D INT4 text-to-mesh generation with UI-managed weights and GLB output.
Add a description, image, and links to the int4 topic page so that developers can more easily learn about it.
To associate your repository with the int4 topic, visit your repo's landing page and select "manage topics."