itsZaid05 commited on
Commit
e41dce6
·
unverified ·
1 Parent(s): 659c7cf

Update openenv.yaml

Browse files
Files changed (1) hide show
  1. openenv.yaml +55 -21
openenv.yaml CHANGED
@@ -7,27 +7,61 @@ port: 7860
7
  description: "Carbon-aware RL environment for multi-objective LLM query routing"
8
  version: "1.0.0"
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  tasks:
11
- - id: "easy"
12
- grader: "graders:EasyGrader"
13
- rubric: "graders:EasyGrader"
14
- name: "Single Query Routing"
15
- title: "Single Query Routing"
16
- description: "Route a single LLM query to the optimal model tier while minimising carbon footprint and latency. The agent must choose a model that meets the query minimum capability requirement."
17
- difficulty: "easy"
 
 
 
 
 
18
 
19
- - id: "medium"
20
- grader: "graders:MediumGrader"
21
- rubric: "graders:MediumGrader"
22
- name: "Multi-Query Episode"
23
- title: "Multi-Query Episode"
24
- description: "Route three queries of varying complexity. An extra penalty applies when the LARGE model is used unnecessarily. The agent must balance accuracy against energy cost over the 3-query episode."
25
- difficulty: "medium"
 
 
 
 
 
26
 
27
- - id: "hard"
28
- grader: "graders:HardGrader"
29
- rubric: "graders:HardGrader"
30
- name: "Stateful Carbon-Aware Routing"
31
- title: "Stateful Carbon-Aware Routing"
32
- description: "Route five queries including repeated queries, a KB-answerable question, and a compliance query requiring LARGE. The agent must exploit caching, cascade strategies, KB lookups, and WAIT actions to maximise cumulative reward."
33
- difficulty: "hard"
 
 
 
 
 
 
7
  description: "Carbon-aware RL environment for multi-objective LLM query routing"
8
  version: "1.0.0"
9
 
10
+ api:
11
+ base_url: /
12
+ endpoints:
13
+ reset:
14
+ method: POST
15
+ path: /reset
16
+ step:
17
+ method: POST
18
+ path: /step
19
+ state:
20
+ method: GET
21
+ path: /state
22
+ tasks:
23
+ method: GET
24
+ path: /tasks
25
+ grader:
26
+ method: POST
27
+ path: /grader
28
+
29
  tasks:
30
+ - id: task_1
31
+ task_id: task_1
32
+ name: Single Query Routing
33
+ difficulty: easy
34
+ description: "Route a single LLM query to the optimal model tier while minimising carbon footprint and latency."
35
+ max_steps: 10
36
+ grader: graders:grade_task_1
37
+ graders:
38
+ - graders:grade_task_1
39
+ reward_range:
40
+ - 0.0
41
+ - 1.0
42
 
43
+ - id: task_2
44
+ task_id: task_2
45
+ name: Multi-Query Episode
46
+ difficulty: medium
47
+ description: "Route 3 queries of varying complexity. LARGE model incurs -0.2 penalty per use."
48
+ max_steps: 20
49
+ grader: graders:grade_task_2
50
+ graders:
51
+ - graders:grade_task_2
52
+ reward_range:
53
+ - 0.0
54
+ - 1.0
55
 
56
+ - id: task_3
57
+ task_id: task_3
58
+ name: Stateful Carbon-Aware Routing
59
+ difficulty: hard
60
+ description: "5-query stateful episode with caching, KB lookups, cascade strategies, and carbon-aware waiting."
61
+ max_steps: 50
62
+ grader: graders:grade_task_3
63
+ graders:
64
+ - graders:grade_task_3
65
+ reward_range:
66
+ - 0.0
67
+ - 1.0