File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ def test_load_model(self):
4747 self .setUp ()
4848 with grpc .insecure_channel ("localhost:50051" ) as channel :
4949 stub = backend_pb2_grpc .BackendStub (channel )
50- response = stub .LoadModel (backend_pb2 .ModelOptions (Model = "petals-team/StableBeluga" ))
50+ response = stub .LoadModel (backend_pb2 .ModelOptions (Model = "bigscience/bloom-560m" ))
51+ print (response )
5152 self .assertTrue (response .success )
5253 self .assertEqual (response .message , "Model loaded successfully" )
5354 except Exception as err :
@@ -64,9 +65,9 @@ def test_text(self):
6465 self .setUp ()
6566 with grpc .insecure_channel ("localhost:50051" ) as channel :
6667 stub = backend_pb2_grpc .BackendStub (channel )
67- response = stub .LoadModel (backend_pb2 .ModelOptions (Model = "petals-team/StableBeluga " ))
68+ response = stub .LoadModel (backend_pb2 .ModelOptions (Model = "bigscience/bloom-560m " ))
6869 self .assertTrue (response .success )
69- req = backend_pb2 .PredictOptions (prompt = "The capital of France is" )
70+ req = backend_pb2 .PredictOptions (Prompt = "The capital of France is" )
7071 resp = stub .Predict (req )
7172 self .assertIsNotNone (resp .message )
7273 except Exception as err :
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def test_text(self):
6666 stub = backend_pb2_grpc .BackendStub (channel )
6767 response = stub .LoadModel (backend_pb2 .ModelOptions (Model = "facebook/opt-125m" ))
6868 self .assertTrue (response .success )
69- req = backend_pb2 .PredictOptions (prompt = "The capital of France is" )
69+ req = backend_pb2 .PredictOptions (Prompt = "The capital of France is" )
7070 resp = stub .Predict (req )
7171 self .assertIsNotNone (resp .message )
7272 except Exception as err :
You can’t perform that action at this time.
0 commit comments