Instructions to use malaiwah/SmolLM2-135M-QFS-rtn-int4-g64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use malaiwah/SmolLM2-135M-QFS-rtn-int4-g64 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="malaiwah/SmolLM2-135M-QFS-rtn-int4-g64")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("malaiwah/SmolLM2-135M-QFS-rtn-int4-g64") model = AutoModelForCausalLM.from_pretrained("malaiwah/SmolLM2-135M-QFS-rtn-int4-g64", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use malaiwah/SmolLM2-135M-QFS-rtn-int4-g64 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/malaiwah/SmolLM2-135M-QFS-rtn-int4-g64
- SGLang
How to use malaiwah/SmolLM2-135M-QFS-rtn-int4-g64 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 "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malaiwah/SmolLM2-135M-QFS-rtn-int4-g64", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use malaiwah/SmolLM2-135M-QFS-rtn-int4-g64 with Docker Model Runner:
docker model run hf.co/malaiwah/SmolLM2-135M-QFS-rtn-int4-g64
SmolLM2-135M-QFS-rtn-int4-g64
Uncalibrated round-to-nearest INT4 control. Part of a small QFS stored-weight fidelity campaign, not a broad capability benchmark.
Source: HuggingFaceTB/SmolLM2-135M. Original attribution/card is preserved in ORIGINAL_MODEL_CARD.md. See LICENSE and license-source.json.
All 210 attention/MLP linear matrices use INT4 group size 64. Embeddings, tied output head and norms retain their original BF16 tensor content. GPTQ-v2 packing is decoded by QFS; this does not claim native serving-kernel compatibility.
No calibration or GPTQ optimization ran. quant_method=gptq describes storage compatibility only; the algorithm is RTN.
Changed files: packed model weights and quantization configuration; tokenizer and untouched tensor content are preserved. The conversion receipt describes original conversion outputs before these publication docs were added. scope.json records intervention coverage.
Measurements and calibrated-method comparisons must cite the actual published QFS capture/comparison receipts, not this card alone. QFS Explorer.
- Downloads last month
- 14
Model tree for malaiwah/SmolLM2-135M-QFS-rtn-int4-g64
Base model
HuggingFaceTB/SmolLM2-135M