Skip to content

Commit e685fca

Browse files
feat: model name set by archon config
1 parent 7d69ca4 commit e685fca

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

archon_configs/gpt-4o-three-critic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "gpt-4o-simple-fuse",
2+
"name": "gpt-4o-three-critic",
33
"layers": [
44
[
55
{

scripts/generate_samples.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ def main(config: GenerationConfig):
183183
sample_id=0 # fix to 0 for now
184184
)
185185
)
186+
187+
# If server type is archon, load model_name from config
188+
if config.server_type == "archon":
189+
try:
190+
with open(config.archon_config_path) as f:
191+
archon_config = json.load(f)
192+
config.model_name = archon_config["name"]
193+
except Exception as e:
194+
print(f"Error loading Archon config: {e}")
195+
sys.exit(1)
186196

187197
# Create inference function with config parameters
188198
# We provide some presets in utils but you can also pass in your own, see query_server for more details

0 commit comments

Comments
 (0)