File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Model Training Guide
22
3- This guide explains how to set up the environment and train the HSTU/DLRM models on Cloud TPU v6 (or other TPU generations) .
3+ This guide explains how to set up the environment and train the HSTU/DLRM models on Cloud TPU v6.
44
55## Option 1: Virtual Environment (Recommended for Dev)
66
@@ -11,14 +11,6 @@ Ensure you have **Python 3.11+** installed.
1111``` bash
1212python3 --version
1313```
14- #### Create the venv\
15- ``` bash
16- python3 -m venv venv
17- ```
18- #### Activate it
19- ``` bash
20- source venv/bin/activate
21- ```
2214
2315### 2. Create and Activate Virtual Environment
2416Run the following from the root of the repository:
@@ -38,7 +30,7 @@ We need to force a specific version of Protobuf to ensure compatibility with our
3830``` bash
3931pip install " protobuf>=6.31.1" --no-deps
4032```
41- The --no-deps flag is required to prevent pip from downgrading it due to strict dependency pinning in other libraries.
33+ The ` --no-deps ` flag is required to prevent pip from downgrading it due to strict dependency pinning in other libraries.
4234
4335### 4. Run the Training for DLRM
4436``` bash
@@ -50,7 +42,7 @@ python dlrm_experiment_test.py
5042If you prefer not to manage a virtual environment or want to deploy this as a container, you can build a Docker image.
5143
5244## 1. Build the Image
53- reate a file named ` Dockerfile ` in the root of the repository:
45+ Create a file named ` Dockerfile ` in the root of the repository:
5446
5547``` dockerfile
5648# Use an official Python 3.11 runtime as a parent image
You can’t perform that action at this time.
0 commit comments