# ここから始めよう！

Accelerateの特定の機能とその活用方法について学習を始める際に、以下のインタラクティブツールをご利用ください。コードの差分、処理内容の説明、さらにドキュメント内でさらに詳しく調べるための有用なリンクをご提供します。

ほとんどのコード例は、Accelerateを何らかの形で統合する前に、以下のPythonコードから始まります：

```python
for batch in dataloader:
    optimizer.zero_grad()
    inputs, targets = batch
    inputs = inputs.to(device)
    targets = targets.to(device)
    outputs = model(inputs)
    loss = loss_function(outputs, targets)
    loss.backward()
    optimizer.step()
    scheduler.step()
```

	<iframe src="https://hf-accelerate-accelerate-examples.hf.space?__theme=light" width="850" height="1600"
    >

    <iframe src="https://hf-accelerate-accelerate-examples.hf.space?__theme=dark" width="850" height="1600"
    >

