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.3.3

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.3.3
File Actions
mistralrs-0.3.3-cp312-none-win_amd64.whl CPython 3.12 none Windows x86-64 Details for mistralrs-0.3.3-cp312-none-win_amd64.whl
mistralrs-0.3.3-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for mistralrs-0.3.3-cp312-cp312-manylinux_2_39_x86_64.whl
mistralrs-0.3.3-cp311-none-win_amd64.whl CPython 3.11 none Windows x86-64 Details for mistralrs-0.3.3-cp311-none-win_amd64.whl
mistralrs-0.3.3-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for mistralrs-0.3.3-cp311-cp311-manylinux_2_39_x86_64.whl
mistralrs-0.3.3-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details for mistralrs-0.3.3-cp310-none-win_amd64.whl
mistralrs-0.3.3-cp310-cp310-manylinux_2_39_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.39+ x86-64 Details for mistralrs-0.3.3-cp310-cp310-manylinux_2_39_x86_64.whl
mistralrs-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for mistralrs-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for mistralrs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 148.6 MB

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

Download URL mistralrs-0.3.3-cp312-none-win_amd64.whl
Size 17.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
758efb47c8183a6b33613044cecc2f297642958164c14ed26d9c36a05c19cf51
BLAKE2b-256 checksum
How to use checksums
dccd9c6e0b5e95a8cf5b13b7204e5660430c08545222dd4b0a0fc01bee4da193
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp312-cp312-manylinux_2_39_x86_64.whl
Size 24.2 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
5974ae751a158260ff5bf420dc5f4cbc300819b3f9ab96b320d5dbb2074abcf0
BLAKE2b-256 checksum
How to use checksums
65abc0551693938a7a36d5c9fca69fe84ab0a585c4320da01c5bbde77b68fbda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp311-none-win_amd64.whl
Size 17.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
4b7c0563ca685d49150871699647b45f78350945e3cc3b33d7b41d832d84d5a4
BLAKE2b-256 checksum
How to use checksums
6aa3457f51f453591dd25f106114249eccb6ba42eafbf581e85d78cd9a5f1072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp311-cp311-manylinux_2_39_x86_64.whl
Size 24.2 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
9f0fa87a7f577174ce0c4825f584e1ca3149f1eda36e5a89a59cac1cc426c49c
BLAKE2b-256 checksum
How to use checksums
9625387a009d9d39c0492160587cf0b7e0d212640292de967f0ca951921422d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp310-none-win_amd64.whl
Size 17.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
320e7cd996a0b32f145f1ca6c17decb5d85b0d348c16b37436cc392bbc543237
BLAKE2b-256 checksum
How to use checksums
c7510a7b7ad880001aff4655081fc5f43618227c244788733911a6c5e1b228e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp310-cp310-manylinux_2_39_x86_64.whl
Size 24.1 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
d50edf5581eaed3bf9b993f3de2802d04c18ba3b814cc6cd58b3811fbb54122f
BLAKE2b-256 checksum
How to use checksums
b6cbce6a7b9105119851dd76a3ecfaf689efd25dab155ac995f24be6c18a11cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 14.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4875f4fbd619c04f778dd8bc69a5d7d028dfb1a79285ad3901a13b4464031d60
BLAKE2b-256 checksum
How to use checksums
9aee11ee905d506478f450bea8b73550e559cd19496ad284f3d1fc6303a513fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

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

Download URL mistralrs-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
Size 10.9 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
70a657765acf537e7692e4a47d3427ac42205da8042deb0cc42c1f0bbcf62675
BLAKE2b-256 checksum
How to use checksums
6a8dadde1a43b4882a670fa3b618443f091397c015cf524a65351240184b5f32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for mistralrs 0.3.3

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.3.3 This release

8 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