Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion experience/example/naive_symbolic_transform_model/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def log(msg=""):
if __name__ == "__main__":
# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/llm_client/raw_llm_task_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def _run_all():

# Source LLM env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/llm_client/task_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __call__(self, all_tasks, llm_method: str, llm_env: Optional[Dict[str, str]]

# Source LLM env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/coding_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def coding_agent(

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/fork_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def backward(ctx, *grad_outputs):

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/get_query_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_query_tensor(

# Source env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/slice_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def read_storage(tensor, flat_index):

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def slice_attention_backward(

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/st_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def backward(ctx, grad_output, grad_selected_indexes=None):

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/st_moe_backward.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def st_moe_backward(

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/function/st_moe_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def st_moe_forward(

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/module/st_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def forward(self, input: torch.Tensor) -> Tuple[torch.Tensor, Any]:

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/symbolic_tensor/optimizer/st_sgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def zero_grad(self, set_to_none: bool = True) -> None:

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
4 changes: 2 additions & 2 deletions experience/symbolic_tensor/tensor_util/make_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def make_tensor(nested_data: NestedList, relative_to: str, symlink: bool = False
src_path = str(opt_file_content_or_path)
if symlink:
rel_src = os.path.relpath(
str(opt_file_content_or_path.resolve()),
os.path.dirname(file_path),
os.path.realpath(str(opt_file_content_or_path)),
os.path.realpath(os.path.dirname(file_path)),
)
os.symlink(rel_src, file_path)
else:
Expand Down
2 changes: 1 addition & 1 deletion experience/test/test_attention_vs_traditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def run_test(name: str, condition: bool, expected=None, actual=None):

# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/test/test_gain_st_sgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read_storage(tensor, flat_index):
if __name__ == "__main__":
# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/test/test_st_attention_followed_by_st_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run_pipeline(model, inp, mask):
if __name__ == "__main__":
# Source anthropic env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion experience/test/test_transform_method_time_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_benchmark(input_data, experience_data, topk, llm_method):
if __name__ == "__main__":
# Source env vars
result = subprocess.run(
["bash", "-c", "source ~/.anthropic.sh && env"],
["bash", "-c", "source ~/.llm_config.sh && env"],
capture_output=True, text=True,
)
for line in result.stdout.splitlines():
Expand Down