Skip to main content

mistral.rs

mistralrs is a Python package which provides an easy to use API for mistral.rs.

Example

More examples can be found here!

from mistralrs import Runner, Which, ChatCompletionRequest

runner = Runner(
    which=Which.Plain(
        model_id="microsoft/Phi-3.5-mini-instruct",
    ),
    in_situ_quant="Q4K",
)

res = runner.send_chat_completion_request(
    ChatCompletionRequest(
        model="mistral",
        messages=[
            {"role": "user", "content": "Tell me a story about the Rust type system."}
        ],
        max_tokens=256,
        presence_penalty=1.0,
        top_p=0.1,
        temperature=0.1,
    )
)
print(res.choices[0].message.content)
print(res.usage)

Please find API docs here and the type stubs here, which are another great form of documentation.

We also provide a cookbook here!

Metadata

Release files for mistralrs 0.5.0

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

Built distributions (wheels)

Table of built distributions (wheels) for mistralrs 0.5.0
File Actions
mistralrs-0.5.0-cp312-none-win_amd64.whl CPython 3.12 none Windows x86-64 Details for mistralrs-0.5.0-cp312-none-win_amd64.whl
mistralrs-0.5.0-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for mistralrs-0.5.0-cp312-cp312-manylinux_2_39_x86_64.whl
mistralrs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for mistralrs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
mistralrs-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for mistralrs-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for mistralrs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
mistralrs-0.5.0-cp311-none-win_amd64.whl CPython 3.11 none Windows x86-64 Details for mistralrs-0.5.0-cp311-none-win_amd64.whl
mistralrs-0.5.0-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for mistralrs-0.5.0-cp311-cp311-manylinux_2_39_x86_64.whl
mistralrs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for mistralrs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
mistralrs-0.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for mistralrs-0.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for mistralrs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
mistralrs-0.5.0-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details for mistralrs-0.5.0-cp310-none-win_amd64.whl
mistralrs-0.5.0-cp310-cp310-manylinux_2_39_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.39+ x86-64 Details for mistralrs-0.5.0-cp310-cp310-manylinux_2_39_x86_64.whl
mistralrs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for mistralrs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
mistralrs-0.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for mistralrs-0.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for mistralrs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 209.4 MB

Release files / mistralrs-0.5.0-cp312-none-win_amd64.whl

Download URL mistralrs-0.5.0-cp312-none-win_amd64.whl
Size 12.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5731309cc47f0b7a9b74ca7ce04528d6d52afd0ad78ef3c8087b1ca06441c7b8
BLAKE2b-256 checksum
How to use checksums
350db4bba89156f1ce944398884275ce81ff0cbb229b19d09b645d2f57952775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.5.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 15.2 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
743dc228ee9dbe070fe7ceae52f08795299e4ac41b483006e874c58eba776f78
BLAKE2b-256 checksum
How to use checksums
545cbb434ef8daa0743b9e11bc1106305d2e8a2769dd79e8e3c60ca4776662cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mistralrs-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.1 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
34ca10eb560f5b4be707e4da89d0a6ccda7f12eb02953e99ee69fea6c779d3ea
BLAKE2b-256 checksum
How to use checksums
a91dd964e0a420f848f36f58db56168a8050cf3ca78bfb57913f61615fab079b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 14.1 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
1f78b2c8c91821d47ea6c0b067da8a5ba8b22ab73ea2760af107529ff61b6e90
BLAKE2b-256 checksum
How to use checksums
38dae47cc4c0c387b1631d1407824fa4ac3cd0526126919a6fe4a125c6737e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL mistralrs-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Size 13.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
87a3f5ce48a8c2a059c899765217bda9c49690000b27c2008a62cc6713255467
BLAKE2b-256 checksum
How to use checksums
b2b5fcd5317013c97093d84b323741dae70a91fe88eca58aaca491032d8f94f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp311-none-win_amd64.whl

Download URL mistralrs-0.5.0-cp311-none-win_amd64.whl
Size 12.3 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
fc4c5e521eea34aec05fd9f127202a15cc773a9511a7c41031626591ba2b4ba6
BLAKE2b-256 checksum
How to use checksums
c937baa3ba8b8a0752cda6561ca0730c9725a09ebcdf6ca6ce18d7e7565d18b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.5.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 15.2 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
61bb3f0449e16f469b06c4ce1843813c0e02ba39b7f9ef5bcadfc99f95f6059e
BLAKE2b-256 checksum
How to use checksums
9afea39f03131e533512ec00ba87415d5891a4d1e09f5961dcb05acbdf73fe5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mistralrs-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.1 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9bf35d4e0d14b4a8e9009add90adc80ab3825a251701e06c35a40ee75f999a13
BLAKE2b-256 checksum
How to use checksums
000fe87b44c9d75002bca6c873537566589c94896a21d2e53f0b2620d6f9d8e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 14.1 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
f074d3d57c5f5383b01b2c3e43d9b1eb1243c9e3ba546d44ff2c239fa467e007
BLAKE2b-256 checksum
How to use checksums
ff0f6068a0471f8b94c1230b2638a62f6252a2ccffdc0f1f602dcf907ed53614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL mistralrs-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Size 13.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bc8889ca5bca15d1d7acfcf02c1e1ec99bfaa6a335dd41e2ac59e43a9b71b443
BLAKE2b-256 checksum
How to use checksums
860a75e8306d9dfb874381a5cf8b718d2f7fa95985b4e71e395077fc048fdc06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp310-none-win_amd64.whl

Download URL mistralrs-0.5.0-cp310-none-win_amd64.whl
Size 12.3 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d984337cded04a396ba2e5d5f98837b1f436a736218443e290c419c30af189cb
BLAKE2b-256 checksum
How to use checksums
26b55295b5bf7dd0bd1d853fca9994080c821e66a2d80405f0a9bbe53ad37670
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.5.0-cp310-cp310-manylinux_2_39_x86_64.whl
Size 15.2 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
5c9292bee8fcb3a030e05111ccd1412b0c500ebbaee4087923bd3d1791a014ba
BLAKE2b-256 checksum
How to use checksums
3ace200e16c9f65d3cd8d2c14826468f22b96c9d3be7f4c6994e213e027a9133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mistralrs-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ef676c5babcab437d63ff0519bff23d8f24c970081ed033fb27ae2f24c11f227
BLAKE2b-256 checksum
How to use checksums
5f78de98009ce4d0ff540f1c4d6426fdd6e8d0123ae82bca31feb83fdf8b5ca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 14.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
bdfcd99f931a2beeb56da64eaeb207ec680044224d55985c5bd01ab61c769357
BLAKE2b-256 checksum
How to use checksums
5680f88a66b7a6b5a0bed6206ac69c11f9e63a3d547bea05a0d75aba3ae44499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / mistralrs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL mistralrs-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Size 13.0 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f63b1142263b7cf43e388f42a497a639b25d193278e27f7214b224eec4c77684
BLAKE2b-256 checksum
How to use checksums
a816c1ae54fa85f10262de3616d75ef0c97157a18812964d6ce9cd03276e65c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for mistralrs 0.5.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

15 release files No provenance

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