|
| 1 | +# AMD Skills Walkthroughs: `local-ai-use` |
| 2 | + |
| 3 | +The goal of this skill is to teach your AI agent to use image generation, text generation, and text to speech locally. |
| 4 | + |
| 5 | + |
| 6 | +## Step 1 - Understanding which skills are available |
| 7 | + |
| 8 | +* Run `claude "Which skills can you see?" --model sonnet`. You should see a list of skills that should not include anythink related to local LLM usage. |
| 9 | +* Make sure there is no `AFENTS.md` file on your local folder. |
| 10 | + |
| 11 | +## Step 2 - Enabling claude to see `local-ai-use` |
| 12 | + |
| 13 | +In the future this will be enabled directly through claude's marketplace. For now, we have to manually add it. |
| 14 | + |
| 15 | +* Clone `https://github.com/amd/skills` |
| 16 | +* Move the `local-ai-use` skill from the repo to `.claude/skills/` |
| 17 | +* Run `claude "Which skills can you see?" --model sonnet`. You should see a list of skills that includes `local-ai-use`. |
| 18 | + |
| 19 | +## Step 3 - Running the skill |
| 20 | + |
| 21 | +Open Claude and run the prompt: |
| 22 | +``` |
| 23 | +Learn how to do image generation locally |
| 24 | +``` |
| 25 | + |
| 26 | +Followed by |
| 27 | +``` |
| 28 | +Generate the image of a cat |
| 29 | +``` |
| 30 | + |
| 31 | +Claude should install Lemonade locally on your device and allow you to generate images locally after the first setup run. |
| 32 | + |
| 33 | +## Step 4 - (Optional) Going beyond |
| 34 | + |
| 35 | +The `local-ai-use` can also help you with text to speech and speech to text locally. Simply ask claude for help there. |
| 36 | + |
| 37 | +## Step 5 - (Optional) Try to get things done without AMD Skills |
| 38 | + |
| 39 | +Remove the added skills from `.claude/skills/` and rerun the experiment above. This should lead to a high variance in execution length and token usage. |
| 40 | +* Model being successful after significant token usage. |
| 41 | +* Model providing a knowledge article instead of actually learning how to do it. |
| 42 | +* Model attempting to come up with a custom strategy to generate images locally, resulting in very low-quality assets. |
0 commit comments