[object Object]

← back to Exo

fix test_inference_engine

30ab126c08c79868e41a6962e5060d0c1950e942 · 2024-07-19 23:44:19 -0700 · Alex Cheema

Files touched

Diff

commit 30ab126c08c79868e41a6962e5060d0c1950e942
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Fri Jul 19 23:44:19 2024 -0700

    fix test_inference_engine
---
 exo/inference/test_inference_engine.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exo/inference/test_inference_engine.py b/exo/inference/test_inference_engine.py
index b1aa01fa..257ecb69 100644
--- a/exo/inference/test_inference_engine.py
+++ b/exo/inference/test_inference_engine.py
@@ -7,7 +7,7 @@ import numpy as np
 
 # An inference engine should work the same for any number of Shards, as long as the Shards are continuous.
 async def test_inference_engine(inference_engine_1: InferenceEngine, inference_engine_2: InferenceEngine, model_id: str):
-    prompt = "In a single word only, what is the capital of Japan? "
+    prompt = "In a single word only, what is the last name of the current president of the USA?"
     resp_full, inference_state_full, _ = await inference_engine_1.infer_prompt(shard=Shard(model_id=model_id, start_layer=0, end_layer=31, n_layers=32), prompt=prompt)
     next_resp_full, next_inference_state_full, _ = await inference_engine_1.infer_tensor(shard=Shard(model_id=model_id, start_layer=0, end_layer=31, n_layers=32), input_data=resp_full, inference_state=inference_state_full)
 
@@ -33,5 +33,5 @@ asyncio.run(test_inference_engine(
 asyncio.run(test_inference_engine(
     TinygradDynamicShardInferenceEngine(),
     TinygradDynamicShardInferenceEngine(),
-    "/Users/alex/Library/Caches/tinygrad/downloads/llama3-8b-sfr",
+    "llama3-8b-sfr",
 ))

← 56e5e34e fix invalid escape sequence exo_text  ·  back to Exo  ·  fix hardcoded path in debug_inference_engine 4d962ffc →