Skip to main content

llm-smollm2

PyPI Changelog Tests License

SmolLM2-135M-Instruct.Q4_1 for LLM. Background on this project.

Installation

Install this plugin in the same environment as LLM.

llm install llm-smollm2

If you have uv installed you can chat with the model without any installation step like this:

uvx --with llm-smollm2 llm chat -m SmolLM2

Usage

This plugin bundles a full copy of the SmolLM2-135M-Instruct.Q4_1 quantized version of the SmolLM2-135M-Instruct model by HuggingFaceTB.

Once installed, run the model like this:

llm -m SmolLM2 'Are dogs real?'

Or to chat with the model (keeping it resident in memory):

llm chat -m SmolLM2

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-smollm2
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

Release files for llm-smollm2 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-smollm2 0.1.2
File Size Uploaded
llm_smollm2-0.1.2.tar.gz 92.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-smollm2 0.1.2
File Interpreter ABI Platform
llm_smollm2-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 185.7 MB

Release files / llm_smollm2-0.1.2.tar.gz

Download URL llm_smollm2-0.1.2.tar.gz
Size 92.9 MB
Tags Source
SHA-256 checksum
How to use checksums
97a14f7fbec7a4612c99eb8d1d458b2763e189f082220d36c88d2eeaed153469
BLAKE2b-256 checksum
How to use checksums
ca760f6954a442e68f33741857f0aa56a3a412faea2302a116322be9d4d22fdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 7, 2025.

Transparency log

Release files / llm_smollm2-0.1.2-py3-none-any.whl

Download URL llm_smollm2-0.1.2-py3-none-any.whl
Size 92.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bcc81830d10ce7d9e76640cad826a4b79ed3e4547c78a0be5c4f2fb0e2448c70
BLAKE2b-256 checksum
How to use checksums
06be9df8343f073e455d94f4acda2c211e84dec4d2879ee959c8dfbaa40d7d1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 7, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page