Run this model with HF Jobs

Run mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC 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 to fine-tune https://huggingface.co/mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC. 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/mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC 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.

SmolLM2-1.7B-Instruct-q0f16-MLC

This is the SmolLM2-1.7B-Instruct model in MLC format q0f16. The model can be used for projects MLC-LLM and WebLLM.

Example Usage

Here are some examples of using this model in MLC LLM. Before running the examples, please install MLC LLM by following the installation documentation.

Chat

In command line, run

mlc_llm chat HF://mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC

REST Server

In command line, run

mlc_llm serve HF://mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC

Python API

from mlc_llm import MLCEngine

# Create engine
model = "HF://mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC"
engine = MLCEngine(model)

# Run chat completion in OpenAI API.
for response in engine.chat.completions.create(
    messages=[{"role": "user", "content": "What is the meaning of life?"}],
    model=model,
    stream=True,
):
    for choice in response.choices:
        print(choice.delta.content, end="", flush=True)
print("\n")

engine.terminate()

Documentation

For more information on MLC LLM project, please visit our documentation and GitHub repo.

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

Model tree for mlc-ai/SmolLM2-1.7B-Instruct-q0f16-MLC

Quantized
(140)
this model