ramalama-musa(7)
π Setting Up RamaLama with MUSA Support on Linux systems π¦
okay bestie, so this is the ramalama-musa(7) page (that's the misc manual, iykyk) and it's literally a whole walkthrough for getting RamaLama running with MUSA support on Linux. No cap, it's giving step-by-step. Let's go. β¨
πΈ Install the MT Linux Driver πΈ
Go download the MUSA SDK that matches your setup, then do exactly what the MT Linux Driver installation guide tells you to do. That's it, that's the step. π
π Install the MT Container Toolkit π
Grab the latest MT CloudNative Toolkits and follow the MT Container Toolkit installation guide like the main character you are. π
β Setting Up MUSA Support β
Run these, fr fr:
$ (cd /usr/bin/musa && sudo ./docker setup $PWD)
$ docker info | grep mthreads
Runtimes: mthreads mthreads-experimental runc
Default Runtime: mthreads
Look at that output. Default Runtime: mthreads. Iconic. π
π§ Testing the Setup π§
Test the Installation
Run this command to vibe-check that everything's set up:
docker run --rm --env MTHREADS_VISIBLE_DEVICES=all ubuntu:22.04 mthreads-gmi
Expected Output
If it's all configured correctly, you should see something similar to this:
Thu May 15 01:53:39 2025
---------------------------------------------------------------
mthreads-gmi:2.0.0 Driver Version:3.0.0
---------------------------------------------------------------
ID Name |PCIe |%GPU Mem
Device Type |Pcie Lane Width |Temp MPC Capable
| ECC Mode
+-------------------------------------------------------------+
0 MTT S80 |00000000:01:00.0 |0% 3419MiB(16384MiB)
Physical |16x(16x) |59C YES
| N/A
---------------------------------------------------------------
---------------------------------------------------------------
Processes:
ID PID Process name GPU Memory
Usage
+-------------------------------------------------------------+
No running processes found
---------------------------------------------------------------
π MUSA_VISIBLE_DEVICES π
RamaLama is obsessed with respecting the MUSA_VISIBLE_DEVICES environment variable if you've already set it in your environment. But if you haven't set it? RamaLama defaults to using all the GPUs detected by mthreads-gmi. Slay, it just figures it out. π
Wanna pick which GPU devices are visible to RamaLama? Set the variable before you run any RamaLama commands, like this:
export MUSA_VISIBLE_DEVICES="0,1" # Use GPUs 0 and 1
ramalama run granite
This is especially useful on multi-GPU systems where you want to dedicate specific GPUs to different workloads. Divide and conquer, bestie. π«Ά
π HISTORY π
May 2025, originally compiled by Xiaodong Ye yeahdongcn@gmail.com β¨mailto:yeahdongcn@gmail.comβ© β thank you for your service, king. ππ
and that's the whole page, bestie!! this lil' guide lives in the Miscellaneous Information Manual, it's the ramalama-musa(7) page, from May 2025 (same era as the history entry, cute). now go forth and run those GPUs. periodt. π
β¨πΈ
π¦ where this page comes from
- fedora 43: ramalama 0.12.3-1.fc43 Β· MIT
- fedora 43: ramalama 0.25.0-1.fc43 Β· MIT
- fedora 44: ramalama 0.17.1-1.fc44 Β· MIT
- fedora 44: ramalama 0.25.0-1.fc44 Β· MIT
- nixos 26.05: ramalama 0.19.0
- nixpkgs unstable: ramalama 0.25.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms