Gaudi2 on Intel® Developer Cloud | Intel Software

130 019
1171
Intel Software258 тыс
Опубликовано 22 ноября 2023, 15:00
Gaudi2 the powerful AI accelerator , on the Intel developer cloud in a few minutes.

The simplest way to get started on a Gaudi2 machine, or an 8 Cards machine.

0. Get a machine (cloud.intel.com)

1. Run the Habana Docker image:
docker run -it --runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --net=host --ipc=host vault.habana.ai/gaudi-docker/1.11.0/ubuntu20.04/habanalabs/pytorch-installer-2.0.1:latest

2. Clone the Model References repository :
git clone github.com/HabanaAI/Model-Refe...

3. Goto hello-world example:
cd Model-References/PyTorch/examples/computer_vision/hello_world/

4. Update Python path
export PYTHONPATH=$PYTHONPATH:Model-References
export PYTHON=/usr/bin/python3.8

5. Run training on 1 card:
PYTHON mnist.py --batch-size=64 --epochs=1 --lr=1.0 \
--gamma=0.7 --hpu --hmp \
--hmp-bf16=ops_bf16_mnist.txt \
--hmp-fp32=ops_fp32_mnist.txt \

6. Run training on 8 cards:
mpirun -n 8 --bind-to core --map-by slot:PE=6 \
--rank-by core --report-bindings \
--allow-run-as-root \
$PYTHON mnist.py \
--batch-size=64 --epochs=1 \
--lr=1.0 --gamma=0.7 \
--hpu --hmp --hmp-bf16=ops_bf16_mnist.txt \
--hmp-fp32=ops_fp32_mnist.txt \"

Habana AI Model-References: bit.ly/3R8TuHX

Intel® Developer Cloud: bit.ly/3FhVYxe

Habana - Intel® Developer Cloud: bit.ly/46qzGo1

About Intel Software:
Intel® Developer Zone is committed to empowering and assisting software developers in creating applications for Intel hardware and software products. The Intel Software YouTube channel is an excellent resource for those seeking to enhance their knowledge. Our channel provides the latest news, helpful tips, and engaging product demos from Intel and our numerous industry partners. Our videos cover various topics; you can explore them further by following the links.

Connect with Intel Software:
INTEL SOFTWARE WEBSITE: intel.ly/2KeP1hD
INTEL SOFTWARE on FACEBOOK: bit.ly/2z8MPFF
INTEL SOFTWARE on TWITTER: bit.ly/2zahGSn
INTEL SOFTWARE GITHUB: bit.ly/2zaih6z
INTEL DEVELOPER ZONE LINKEDIN: bit.ly/2z979qs
INTEL DEVELOPER ZONE INSTAGRAM: bit.ly/2z9Xsby
INTEL GAME DEV TWITCH: bit.ly/2BkNshu

#intel #intelsoftware #oneapi

Gaudi2 on Intel® Developer Cloud | Intel Software
автотехномузыкадетское