# UnslothによるAMD AI強化学習ハッカソン

Unsloth の GitHub リポジトリはこちらでご覧いただけます： <https://github.com/unslothai/unsloth>

AMD ファインチューニング用ノートブックへのリンクはこちら：

{% embed url="<https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_(20B)_Reinforcement_Learning_2048_Game_BF16.ipynb>" %}

<https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_(20B)_Reinforcement_Learning_2048_Game_BF16.ipynb>

{% code overflow="wrap" %}

```bash
wget 'https://raw.githubusercontent.com/unslothai/notebooks/refs/heads/main/nb/gpt_oss_(20B)_Reinforcement_Learning_2048_Game_BF16.ipynb'
```

{% endcode %}

Unsloth / Unsloth Zoo をアップグレードしたい場合：

{% code overflow="wrap" %}

```bash
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.0 --upgrade --force-reinstall

pip uninstall unsloth unsloth_zoo -y && \
    pip install git+https://github.com/unslothai/unsloth-zoo git+https://github.com/unslothai/unsloth --no-deps --force-reinstall --no-cache-dir
```

{% endcode %}

bitsandbytes について：

```bash
pip install "unsloth[amd] @ git+https://github.com/unslothai/unsloth"
```

もし次のような表示が出たら：

{% code overflow="wrap" %}

```
error: Failed to install: bitsandbytes-1.33.7rc0-py3-none-manylinux_2_24_x86_64.whl (bitsandbytes==1.33.7rc0 (from https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/continuous-release_main/bitsandbytes-1.33.7.preview-py3-none-manylinux_2_24_x86_64.whl)) Caused by: Wheel version does not match filename (0.49.2.dev0 != 1.33.7rc0), which indicates a malformed wheel. If this is intentional, set UV_SKIP_WHEEL_FILENAME_CHECK=1.
```

{% endcode %}

UV\_SKIP\_WHEEL\_FILENAME\_CHECK を使用しないでください。代わりに、次のみを使用してください `pip install "unsloth[amd] @ git+https://github.com/unslothai/unsloth"` （uv ではなく）uv は bitsandbytes を破壊するため使用しないでください。可能であれば PR にチェックを追加してこれらを検出するようにしてください。

AMD のインストール手順については、こちらのガイドをご覧ください：

{% content-ref url="/pages/cc479234476bfcb2928aaa70e0b137d2f1b29981" %}
[AMD](/docs/jp/meru/install/amd.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unsloth.ai/docs/jp/meru/install/amd/amd-hackathon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
