Serve Transformers and Manage GPUs
Project description
tfmx
Install
pip install tfmx --upgrade
Commands
Set GPU control state:
gpu_fan -cs a:1
Set GPU power limit:
# M-X GPU-0/1
gpu_pow -pm a:1 && gpu_pow -pl "0:160;1:200"
# M-A GPU-0/1
gpu_pow -pm a:1 && gpu_pow -pl "0,1:160"
Set GPU fan speed:
gpu_fan -cs a:1 && gpu_fan -fs a:100
Set GPU monitor with curve:
# gpu_mon -c "a:30-50/50-65/60-80/75-100;3,7:25-100" -s
Run tei compose and machine:
tei_compose up && sleep 45 && tei_machine run --perf-track
Run tei benchmark:
tei_benchmark run -E "http://localhost:28800" -n 100000
Run qwn compose, machine, and benchmark:
qwn compose up --gpu-configs "0:4b:4bit"
qwn compose up --gpu-layout uniform-awq
qwn machine run -b
qwn client chat "你好,请做个自我介绍"
qwn benchmark run -E "http://localhost:27800" -n 100
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tfmx-1.1.2.tar.gz
(194.9 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
tfmx-1.1.2-py3-none-any.whl
(215.9 kB
view details)
File details
Details for the file tfmx-1.1.2.tar.gz.
File metadata
- Download URL: tfmx-1.1.2.tar.gz
- Upload date:
- Size: 194.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f6852d9de65ca6748fdf9b0454c71b06a4a9ade125335c2e77d999b7d572ea
|
|
| MD5 |
90be4bbb4a87f33edeef700b7559f680
|
|
| BLAKE2b-256 |
c10fb2e823bccde28abd7f923dd2bf95bf02979885ceecb6d5464932f5936afc
|
File details
Details for the file tfmx-1.1.2-py3-none-any.whl.
File metadata
- Download URL: tfmx-1.1.2-py3-none-any.whl
- Upload date:
- Size: 215.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53dbb2ded6a48a72a859669fbe543bc72625c204dd06350fcb64c6b7e9ec0ab6
|
|
| MD5 |
83fc7d9bcc4dd130775ce02993b992f7
|
|
| BLAKE2b-256 |
6866d4c9c45780ab3e7099123c9a17c16bba110cdda9f2daa718ceb53617387b
|