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.tar.gz
(184.1 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-py3-none-any.whl
(204.8 kB
view details)
File details
Details for the file tfmx-1.1.tar.gz.
File metadata
- Download URL: tfmx-1.1.tar.gz
- Upload date:
- Size: 184.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a177cb8b9100c33304d05bcbb2e36cdcc2efbbd66cbee5917f861afd0e386e70
|
|
| MD5 |
01242eda72def880a6631edc7742591c
|
|
| BLAKE2b-256 |
3830a45687f2dc72dbaaf5621f5e6d68806d171832f19d0bd7488bc679590f0b
|
File details
Details for the file tfmx-1.1-py3-none-any.whl.
File metadata
- Download URL: tfmx-1.1-py3-none-any.whl
- Upload date:
- Size: 204.8 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 |
c40aedc3e290ca2c711212ab0071d8ab36f08a3de5a4367c5e77e7f68363ce47
|
|
| MD5 |
1be13d1c52629c3d8dd3d6d76ddb232e
|
|
| BLAKE2b-256 |
4a21be04fd8ffa2345d08388c36a316452073471292a507b610e56e929de545c
|