# Unsloth環境フラグ

<table><thead><tr><th width="397.4666748046875">環境変数</th><th>目的</th><th data-hidden></th></tr></thead><tbody><tr><td><code>os.environ["UNSLOTH_RETURN_LOGITS"] = "1"</code></td><td>logits を強制的に返します。logits が必要な評価に便利です。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_COMPILE_DISABLE"] = "1"</code></td><td>自動コンパイラを無効にします。誤ったファインチューニング結果のデバッグに役立つ場合があります。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_DISABLE_FAST_GENERATION"] = "1"</code></td><td>一般的なモデルに対して高速生成を無効にします。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_ENABLE_LOGGING"] = "1"</code></td><td>自動コンパイラのログを有効にします。どの関数がコンパイルされているか、またはされていないかを確認するのに便利です。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_FORCE_FLOAT32"] = "1"</code></td><td>float16 の環境では、float16 の混合精度ではなく float32 を使用します。Gemma 3 に便利です。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_STUDIO_DISABLED"] = "1"</code></td><td>追加機能を無効にします。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_COMPILE_DEBUG"] = "1"</code></td><td>非常に詳細な <code>torch.compile</code>ログを有効にします。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_COMPILE_MAXIMUM"] = "0"</code></td><td>最大 <code>torch.compile</code>最適化を有効にします。推奨されません。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_COMPILE_IGNORE_ERRORS"] = "1"</code></td><td>これをオフにすると、fullgraph の解析を有効にできます。</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_FULLGRAPH"] = "0"</code></td><td>有効にします <code>torch.compile</code> fullgraph モード</td><td></td></tr><tr><td><code>os.environ["UNSLOTH_DISABLE_AUTO_UPDATES"] = "1"</code></td><td>unsloth-zoo への更新を行わないよう強制します <code>unsloth-zoo</code></td><td></td></tr></tbody></table>

もう一つの可能性として、アップロードしたモデルのアップロードデータが破損しているのかもしれませんが、可能性は低いです。次を試してください:

```python
model, tokenizer = FastVisionModel.from_pretrained(
    "Qwen/Qwen2-VL-7B-Instruct",
    use_exact_model_name = True,
)
```


---

# 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/ji-ben/unsloth-environment-flags.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.
