ONNX Model Zoo

davidberenstein1957/SmolLM2-360M-Instruct-smashed

By davidberenstein1957 · ↓ 2 · ♥ 0 · Updated 2025-07-27

What's in this repo

This page lists the files in davidberenstein1957/SmolLM2-360M-Instruct-smashed.

  • No .onnx files in this repository
  • 6 files, including 3 .json, 1 .md, 1 .safetensors
  • Last updated 2025-07-27

ONNX files

This repository has no .onnx files. See the full file list on the right for other formats.

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Model Card for davidberenstein1957/SmolLM2-360M-Instruct-smashed

This model was created using the pruna library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.

Usage

First things first, you need to install the pruna library:

pip install pruna

You can use the transformers library to load the model but this might not include all optimizations by default.

To ensure that all optimizations are applied, use the pruna library to load the model using the following code:

from pruna import PrunaModel

loaded_model = PrunaModel.from_pretrained(
    "davidberenstein1957/SmolLM2-360M-Instruct-smashed"
)

For inference, you can use the inference methods of the original model like shown in the original model card. Alternatively, you can visit the full documentation here for more information.

Smash Configuration

The compression configuration of the model is stored in the smash_config.json file, which describes the optimization methods that were applied to the model.

{
    "batcher": null,
    "cacher": null,
    "compiler": null,
    "factorizer": null,
    "pruner": null,
    "quantizer": "torchao",
    "torchao_excluded_modules": "none",
    "torchao_quant_type": "int8dq",
    "batch_size": 1,
    "device": "cpu",
    "device_map": null,
    "save_fns": [
        "save_before_apply"
    ],
    "load_fns": [
        "transformers"
    ],
    "reapply_after_load": {
        "factorizer": null,
        "pruner": null,
        "quantizer": "torchao",
        "cacher": null,
        "compiler": null,
        "batcher": null
    }
}

🌍 Join the Pruna AI community!

Twitter GitHub LinkedIn Discord Reddit

Model info

text-generation transformers
transformers safetensors llama text-generation onnx transformers.js pruna-ai en base_model:HuggingFaceTB/SmolLM2-360M base_model:finetune:HuggingFaceTB/SmolLM2-360M license:apache-2.0 text-generation-inference
↓ 2 ♥ 0

Created: 2025-07-27

Updated: 2025-07-27

View on Hugging Face

Files (6)

.gitattributes
README.md
config.json
generation_config.json
model.safetensors
smash_config.json

Related models