66 "text" : [
77 "Hello," ,
88 {
9- "model" : "watsonx/ibm/granite-34b-code -instruct" ,
9+ "model" : "watsonx/meta-llama/llama-3-8b -instruct" ,
1010 "parameters" : {
11- "decoding_method" : "greedy" ,
12- "stop_sequences" : ["!" ],
13- "include_stop_sequence" : False ,
11+ "temperature" : 0 ,
12+ "stop" : ["!" ],
1413 "mock_response" : " World" ,
1514 },
1615 },
@@ -34,9 +33,9 @@ def test_model():
3433 "def" : "SOMEONE" ,
3534 "text" : [
3635 {
37- "model" : "watsonx/ibm/granite-34b-code -instruct" ,
36+ "model" : "watsonx/meta-llama/llama-3-8b -instruct" ,
3837 "parameters" : {
39- "decoding_method " : "greedy" ,
38+ "temperature " : 0 ,
4039 "stop" : ["!" ],
4140 "include_stop_sequence" : False ,
4241 "mock_response" : " World" ,
@@ -54,8 +53,8 @@ def test_model():
5453 {
5554 "model" : "watsonx/google/flan-t5-xl" ,
5655 "parameters" : {
57- "decoding_method " : "greedy" ,
58- "stop_sequences " : ["." ],
56+ "temperature " : 0 ,
57+ "stop " : ["." ],
5958 "include_stop_sequence" : True ,
6059 "roles" : {"user" : {"pre_message" : "" , "post_message" : "" }},
6160 "mock_response" : 'World is a fictional character in the popular science fiction television series "The X-Files' ,
@@ -85,7 +84,7 @@ def test_model_chain():
8584 "def" : "LOCATION" ,
8685 "text" : [
8786 {
88- "model" : "watsonx/ibm/granite-34b-code -instruct" ,
87+ "model" : "watsonx/meta-llama/llama-3-8b -instruct" ,
8988 "input" : {
9089 "text" : [
9190 "Question: What is the weather in London?\n " ,
@@ -98,8 +97,8 @@ def test_model_chain():
9897 ]
9998 },
10099 "parameters" : {
101- "decoding_method " : "greedy" ,
102- "stop_sequences " : ["Question" ],
100+ "temperature " : 0 ,
101+ "stop " : ["Question" ],
103102 "include_stop_sequence" : False ,
104103 "mock_response" : "Armonk" ,
105104 },
@@ -122,9 +121,9 @@ def test_multi_shot():
122121 "text" : [
123122 "Hello,\n " ,
124123 {
125- "model" : "watsonx/ibm/granite-34b-code -instruct" ,
124+ "model" : "watsonx/meta-llama/llama-3-8b -instruct" ,
126125 "parameters" : {
127- "stop_sequences " : ["." ],
126+ "stop " : ["." ],
128127 "mock_response" : '\n I have a question about the use of the word "in" in the sentence: "The cake was baked in the oven.' ,
129128 },
130129 },
@@ -144,12 +143,12 @@ def test_data_missing_parameters():
144143
145144model_parameter = {
146145 "description" : "Hello world with a variable" ,
147- "defs" : {"model" : "watsonx/ibm/granite-34b-code -instruct" },
146+ "defs" : {"model" : "watsonx/meta-llama/llama-3-8b -instruct" },
148147 "text" : [
149148 "Hello," ,
150149 {
151150 "model" : "${ model }" ,
152- "parameters" : {"stop_sequences " : ["!" ], "mock_response" : " World!" },
151+ "parameters" : {"stop " : ["!" ], "mock_response" : " World!" },
153152 },
154153 ],
155154}
@@ -164,12 +163,12 @@ def test_model_parameter():
164163
165164model_parameter1 = {
166165 "description" : "Hello world with a variable" ,
167- "defs" : {"model" : "granite-34b-code -instruct" },
166+ "defs" : {"model" : "watsonx/meta-llama/llama-3-8b -instruct" },
168167 "text" : [
169168 "Hello," ,
170169 {
171170 "model" : "watsonx/ibm/${ model }" ,
172- "parameters" : {"stop_sequences " : ["!" ], "mock_response" : " World!" },
171+ "parameters" : {"stop " : ["!" ], "mock_response" : " World!" },
173172 },
174173 ],
175174}
@@ -187,7 +186,7 @@ def test_model_parameter1():
187186 "text" : [
188187 "Hello," ,
189188 {
190- "model" : "watsonx/ibm/granite-34b-code -instruct-v2 " ,
189+ "model" : "watsonx/meta-llama/llama-3-8b -instruct" ,
191190 "platform" : "litellm" ,
192191 "parameters" : {"stop" : ["!" ], "mock_response" : " World!" },
193192 },
0 commit comments