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.4.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.4.0
File Actions
mistralrs-0.4.0-cp312-none-win_amd64.whl CPython 3.12 none Windows x86-64 Details for mistralrs-0.4.0-cp312-none-win_amd64.whl
mistralrs-0.4.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.4.0-cp312-cp312-manylinux_2_39_x86_64.whl
mistralrs-0.4.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.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for mistralrs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
mistralrs-0.4.0-cp311-none-win_amd64.whl CPython 3.11 none Windows x86-64 Details for mistralrs-0.4.0-cp311-none-win_amd64.whl
mistralrs-0.4.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.4.0-cp311-cp311-manylinux_2_39_x86_64.whl
mistralrs-0.4.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.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for mistralrs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
mistralrs-0.4.0-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details for mistralrs-0.4.0-cp310-none-win_amd64.whl
mistralrs-0.4.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.4.0-cp310-cp310-manylinux_2_39_x86_64.whl
mistralrs-0.4.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.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for mistralrs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 168.1 MB

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

Download URL mistralrs-0.4.0-cp312-none-win_amd64.whl
Size 11.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
887509d981fbbe63e5af36308580e65df886108adf0d1ebb171df5d3b498aff4
BLAKE2b-256 checksum
How to use checksums
7277f2ac828cb5264c65474e1d7fb593aaa5e2929ac9eb6b7ef606cce524f3c8
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.4.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.4.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 16.6 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
8ff3e72bc75e5bba3557c01ea82c3106c0fb2bf5e0e892b4485a7ec78fd01dba
BLAKE2b-256 checksum
How to use checksums
a9b8bee116385d2feb16b446fc8472a69979c1c23eaacea953018c6d91b31d72
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.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 15.4 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4370909af54829c83586d5af499920a29a54cd56c815336a11746f0507c857e0
BLAKE2b-256 checksum
How to use checksums
cdd3d1d0a3b0a3b73e330a7934ce5528f7e34ab29a375df5a7e72bdafa101129
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.4.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL mistralrs-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Size 12.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7245671fc732214908c7e9ef90705d4b2ba53902b607aa4975aabbc4d6f4d5f3
BLAKE2b-256 checksum
How to use checksums
0536eaadd54b90d3f44181ead7f18c20c4f48a118d4cef97020ecc5c58f7a118
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.4.0-cp311-none-win_amd64.whl

Download URL mistralrs-0.4.0-cp311-none-win_amd64.whl
Size 11.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6265a29211a20fa3f0632f8c1a25d8ab39f75d48cd962d35c3fc9d298ca44fce
BLAKE2b-256 checksum
How to use checksums
95527c701416c97e22fbb32e8345888d9ff955053b07ccfc524bcda72413942b
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.4.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.4.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 16.6 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
77913423723cdcef5f4807aeac86d5ba196d4341cbe61e9c35511c357515d59c
BLAKE2b-256 checksum
How to use checksums
acb7886532992ade1470a5cef2373e39c19ffb3add3d1401409e1839fc765e05
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.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 15.4 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
5faf480392e6fcc5ae0f26af76309c605a501e397c77151091a1a98d874a521e
BLAKE2b-256 checksum
How to use checksums
3a528c6442e7781a0fb30c9e64eafe9940606efce96accf377efaf8ade76b1f9
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.4.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL mistralrs-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Size 12.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8227b815f06a4de203c880ee1d4a95e927a1b4b41266a7d74fb9c6fb09d936e4
BLAKE2b-256 checksum
How to use checksums
89bfa26e2358930d11ba31286f034d4549c431ad664c8814b5a9e859e18f0edd
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.4.0-cp310-none-win_amd64.whl

Download URL mistralrs-0.4.0-cp310-none-win_amd64.whl
Size 11.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
463e936e80374a3e674993e10222f65da16d6a35e054320940b1e80787920360
BLAKE2b-256 checksum
How to use checksums
7448a80d2ca8840b6c81429e68a8024a2c3f66f8b87119256595574877964147
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.4.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL mistralrs-0.4.0-cp310-cp310-manylinux_2_39_x86_64.whl
Size 16.6 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
dd4c780d58babac7ed900fee51b941e70600cb2546b7601a2e2ab75e5e443d94
BLAKE2b-256 checksum
How to use checksums
07e5e1e957f5c2792d702c09bd6d0f1caa2b993f311ff1c94d091c20a5fe28c9
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.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 15.4 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8ed90f49eab7c5dbc81d8154415b8a8d6fcd6e03652f6baf0661634679bd23e9
BLAKE2b-256 checksum
How to use checksums
b9f8e8c7c76262c18511b7bd1c95404ad75ccb65a88beef870eff1ea53667aa0
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.4.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL mistralrs-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Size 12.4 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3f57fca796dc13ce4e14bc6c5f981a6d65a5963bab005e444365bd5f4a793812
BLAKE2b-256 checksum
How to use checksums
8d6fffadf464ea434b595d5088c044d00d938265c61fc7ec489dcce0bc504f3e
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.4.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.4.0 This release

12 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