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.1.tar.gz
(193.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
tfmx-1.1.1-py3-none-any.whl
(214.5 kB
view details)
File details
Details for the file tfmx-1.1.1.tar.gz.
File metadata
- Download URL: tfmx-1.1.1.tar.gz
- Upload date:
- Size: 193.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16cbe724d479e56d8f0fded90235677f088685de4cc14adc879f7e9f391ca464
|
|
| MD5 |
f6e96be2d48e09a3a4b52b20ad736e3d
|
|
| BLAKE2b-256 |
2a6febb44057cab5d088001b8b38f8e35a496de3f882987add44d1b1715369f5
|
File details
Details for the file tfmx-1.1.1-py3-none-any.whl.
File metadata
- Download URL: tfmx-1.1.1-py3-none-any.whl
- Upload date:
- Size: 214.5 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 |
e575dfdc02122abd1ab3e76492b679f5fbad1bdcac5288e7d45fcec402d24f4a
|
|
| MD5 |
a602670112d3f13aa4357d914103e27c
|
|
| BLAKE2b-256 |
0d007cb089d70f61f340f3921958acb0e8e4130780492cc87b8ecf849fefd423
|