ChatML
Simple functions to convert raw text to ChatML (LLMs speak ChatML)
## Installation
just
pip install chatml-llm
## Usage
from chatml import ChatML
ai = ChatML(role="assistant") # or however you name it
ai.build("Hi, how can I help you?") # self.text inside build is now ChatML'ed string you gave inside
text = ai.build("...", format="str") # returns ChatML'ed text you put inside
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chatml_llm-0.2.tar.gz
(1.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatml_llm-0.2.tar.gz.
File metadata
- Download URL: chatml_llm-0.2.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
634162205157badab0e3d3a7f00f1a212a831ca4de222b8fa411d3a0925386a1
|
|
| MD5 |
ce12091d58f05d683e5c0c6937d2ff17
|
|
| BLAKE2b-256 |
32c8a627d64ad38e138c836435ede462875ec519a9cecf4d6e346f0dbde9a59d
|
File details
Details for the file chatml_llm-0.2-py3-none-any.whl.
File metadata
- Download URL: chatml_llm-0.2-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70e7d169ab61db9b8ac89162d0744c0ec9fcb0b5780b8b8af694f20b38ac7256
|
|
| MD5 |
4f1ece227347f4fc875ec66b2c2387a4
|
|
| BLAKE2b-256 |
e975f0bc58b49e772b2493392cb46f022dae5fc0e40d9d90f9b0fbd83dbf49bb
|