Skip to content

Commit

Permalink
rev 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouya Rostam committed May 8, 2024
1 parent 8cd1e61 commit 37a9fef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/c/test/test_picollm_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ def test_picollm(self):
"-a", self._access_key,
"-l", pv_library_path("../../.."),
"-m", self._model_path,
"-d", self._device,
"-p", "Instruct: Where is the capital city of British Columbia?\nOutput:",
]
process = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = process.communicate()
self.assertEqual(process.poll(), 0)
self.assertEqual(stderr.decode('utf-8'), '')
completion = stdout.decode('utf-8').strip()
self.assertIn("British Columbia", completion)
if self._device != "gpu":
self.assertIn("British Columbia", completion)


if __name__ == '__main__':
Expand Down

0 comments on commit 37a9fef

Please sign in to comment.