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

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.2
File Actions
mistralrs-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for mistralrs-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl
mistralrs-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for mistralrs-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.3.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for mistralrs-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
mistralrs-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for mistralrs-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl
mistralrs-0.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for mistralrs-0.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.3.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for mistralrs-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
mistralrs-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for mistralrs-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl
mistralrs-0.3.2-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.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
mistralrs-0.3.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for mistralrs-0.3.2-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 116.1 MB

Release files / mistralrs-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL mistralrs-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl
Size 14.6 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
96b39e28a53b4424f684c18758c61af0a5a0f8e63308b9469b1b934de8f754b2
BLAKE2b-256 checksum
How to use checksums
5c1f7e452f9815f1f7907bdfdaadb24101c01953de4791884870284e1f9bef1d
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.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 13.7 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
42bee80f05a9c1e4a74e80e7285043d63342b6159fb06eadff436be17807968b
BLAKE2b-256 checksum
How to use checksums
d400159b51db510332308a08c518ca1147a0cd6d12a5a589311e743a3ea1f6f1
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.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL mistralrs-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Size 10.5 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d7b48f663ea1a736bd31935885c86d4213ba080e62a41fe0e8ce58b66d72026d
BLAKE2b-256 checksum
How to use checksums
e1d67f1e45d2c6c487a080eb0dc7fb2c3ad2e954dab31ae98beba9c4ef782537
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.2-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL mistralrs-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl
Size 14.4 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
49639a305e55f68d09e8f94df940db2d7fa2b99757b48e2035bb26151591b8ea
BLAKE2b-256 checksum
How to use checksums
7e80074e5f018390a80a6d87b009f5d33971efcd0e988cf2c73c8fe839e6420a
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.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 13.7 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
dc09a2c20c51fc0723728252a6eeb3c4cc7ab314fb6994d1799bbb1435bc3602
BLAKE2b-256 checksum
How to use checksums
cf6f8b1d9d4f5f89bf994f97ea14393e1d54e4fd1f21f0debdcf96e88ed0f834
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.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL mistralrs-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Size 10.5 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c6abc98288ee6cff096a978cccd4eb75dfb6b798e6cea3da36e2d66c6b1b1839
BLAKE2b-256 checksum
How to use checksums
ffd2fe04ed0454a133e59141be10befe3e6954bb4a4c97833a6526d86a729a48
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.2-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL mistralrs-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl
Size 14.4 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
44f58115cae1874c300a6d828ef98111f3a61ba9fe5c9b857ef0877d4e05e90f
BLAKE2b-256 checksum
How to use checksums
0e4b849e71d4f3f061fca807b5aa255022eec160acdab10a47b4595a8a68c5ec
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.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL mistralrs-0.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 13.7 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
cf828445fa17432a0b88543646f20254391e3ccc2cc68c45aa65958a6c2cdb54
BLAKE2b-256 checksum
How to use checksums
abed55a3c251e0679532df0003012a4354766480dcf3be144ea1fa861664bcf1
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.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL mistralrs-0.3.2-cp310-cp310-macosx_11_0_arm64.whl
Size 10.5 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a536f2e5dfcc1816ce998d07f3aba3b02d8a9877746933eadd1ff2294dc69efe
BLAKE2b-256 checksum
How to use checksums
899f80607db1764b43a4a1214f23c4f4d3bd573cc604efb08d861b5f74ca21b1
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.2

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

9 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