Run this model with HF Jobs

Run AINovice2005/SmolLM2-360M-smashed on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/AINovice2005/SmolLM2-360M-smashed. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/AINovice2005/SmolLM2-360M-smashed on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/AINovice2005/SmolLM2-360M-smashed. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/AINovice2005/SmolLM2-360M-smashed. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Model Card for AINovice2005/SmolLM2-360M-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(
    "AINovice2005/SmolLM2-360M-smashed"
)
# we can then run inference using the methods supported by the base model

For inference, you can use the inference methods of the original model like shown in the original model card. Alternatively, you can visit the Pruna documentation 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": "torch_compile",
    "factorizer": null,
    "kernel": null,
    "pruner": null,
    "quantizer": "hqq",
    "hqq_backend": "torchao_int4",
    "hqq_compute_dtype": "torch.bfloat16",
    "hqq_force_hf_implementation": false,
    "hqq_group_size": 64,
    "hqq_use_torchao_kernels": true,
    "hqq_weight_bits": 4,
    "torch_compile_backend": "inductor",
    "torch_compile_dynamic": false,
    "torch_compile_fullgraph": true,
    "torch_compile_make_portable": false,
    "torch_compile_max_kv_cache_size": 400,
    "torch_compile_mode": "max-autotune",
    "torch_compile_seqlen_manual_cuda_graph": 200,
    "torch_compile_target": "model",
    "batch_size": 1,
    "device": "cuda:0",
    "device_map": null,
    "save_fns": [
        "hqq",
        "save_before_apply"
    ],
    "load_fns": [
        "hqq"
    ],
    "reapply_after_load": {
        "factorizer": null,
        "pruner": null,
        "quantizer": null,
        "kernel": null,
        "cacher": null,
        "compiler": "torch_compile",
        "batcher": null
    }
}

🌍 Join the Pruna AI community!

Twitter GitHub LinkedIn Discord Reddit

Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including AINovice2005/SmolLM2-360M-smashed