Skip to content

Commit 56ccc1d

Browse files
author
Ubuntu
committed
remove anthropic
1 parent 54780ea commit 56ccc1d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

test_scripts/images/resize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from PIL import Image
22

33
# Path to the image
4-
image_path = '/Users/colemiller/cortex.t/test_scripts/images/john2.png'
4+
image_path = '/example_path/'
55

66
# Desired dimensions
77
desired_width = 576

validators/text_validator.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, dendrite, config, subtensor, wallet: bt.wallet):
1717
super().__init__(dendrite, config, subtensor, wallet, timeout=75)
1818
self.streaming = True
1919
self.query_type = "text"
20-
self.model = "gpt-4-1106-preview"
20+
self.model = "gpt-4-1106-preview"
2121
self.max_tokens = 4096
2222
self.temperature = 0.0001
2323
self.weight = 1
@@ -77,7 +77,7 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:
7777
query_tasks = []
7878
uid_to_question = {}
7979
# Randomly choose the provider based on specified probabilities
80-
providers = ["OpenAI"] * 88 + ["Anthropic"] * 2 + ["Gemini"] * 0 + ["Claude"] * 10
80+
providers = ["OpenAI"] * 70 + ["Anthropic"] * 0 + ["Gemini"] * 0 + ["Claude"] * 30
8181
self.provider = random.choice(providers)
8282

8383
if self.provider == "Anthropic":
@@ -86,15 +86,17 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:
8686
# gemini models = ["gemini-pro"]
8787
self.model = "anthropic.claude-v2:1"
8888
elif self.provider == "OpenAI":
89-
self.model = "gpt-4-1106-preview"
90-
# self.model = "gpt-3.5-turbo"
89+
# self.model = "gpt-4-1106-preview"
90+
self.model = "gpt-3.5-turbo"
9191

9292
elif self.provider == "Gemini":
9393
self.model = "gemini-pro"
9494

9595
elif self.provider == "Claude":
96-
self.model = "claude-3-opus-20240229"
96+
# self.model = "claude-3-opus-20240229"
9797
# self.model = "claude-3-sonnet-20240229"
98+
self.model = "claude-instant-1.2"
99+
98100
bt.logging.info(f"provider = {self.provider}\nmodel = {self.model}")
99101
for uid in available_uids:
100102
prompt = await self.get_question(len(available_uids))
@@ -116,7 +118,7 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:
116118

117119
def should_i_score(self):
118120
random_number = random.random()
119-
will_score_all = random_number < 1 / 12
121+
will_score_all = random_number < 1 / 2
120122
bt.logging.info(f"Random Number: {random_number}, Will score text responses: {will_score_all}")
121123
return will_score_all
122124

validators/weight_setter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async def perform_synthetic_scoring_and_update_weights(self):
243243
)
244244

245245
# if we want to slow down the speed of the validator steps
246-
await asyncio.sleep(100)
246+
# await asyncio.sleep(100)
247247

248248
def select_validator(self, steps_passed):
249249
return self.text_vali if steps_passed % 10 in (0, 1, 2, 3, 4, 5, 6, 7, 8) else self.image_vali

0 commit comments

Comments
 (0)