Skip to content

Commit

Permalink
#5337: Add eth dispatch config to select Mixtral tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtairum committed May 23, 2024
1 parent 6cbe2ec commit bc50e39
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/demos/t3000/mixtral8x7b/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from ttnn import ReplicateTensorToMesh, ConcatMeshToTensor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from models.demos.t3000.mixtral8x7b.tt.mixtral_common import prepare_inputs_ttnn, prepare_rotation_mat_ttnn
Expand Down
1 change: 1 addition & 0 deletions models/demos/t3000/mixtral8x7b/tests/test_mixtral_mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from ttnn import ReplicateTensorToMesh, ConcatMeshToTensor
Expand Down
1 change: 1 addition & 0 deletions models/demos/t3000/mixtral8x7b/tests/test_mixtral_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from ttnn import ReplicateTensorToMesh, ConcatMeshToTensor
Expand Down
1 change: 1 addition & 0 deletions models/demos/t3000/mixtral8x7b/tests/test_mixtral_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from ttnn import ReplicateTensorToMesh, ConcatMeshToTensor
Expand Down
1 change: 1 addition & 0 deletions models/demos/t3000/mixtral8x7b/tests/test_mixtral_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
os.environ["MIXTRAL_TOKENIZER_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["MIXTRAL_CACHE_PATH"] = "/mnt/MLPerf/tt_dnn-models/Mistral/Mixtral-8x7B-v0.1/"
os.environ["TT_METAL_ASYNC_DEVICE_QUEUE"] = "1"
os.environ["WH_ARCH_YAML"] = "wormhole_b0_80_arch_eth_dispatch.yaml"

import ttnn
from ttnn import ConcatMeshToTensor
Expand Down

0 comments on commit bc50e39

Please sign in to comment.