Skip to content

Conversation

@xzyaoi
Copy link
Collaborator

@xzyaoi xzyaoi commented Jan 3, 2025

No description provided.

@xzyaoi xzyaoi linked an issue Jan 3, 2025 that may be closed by this pull request
@xzyaoi xzyaoi requested a review from Copilot January 3, 2025 13:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 12 out of 24 changed files in this pull request and generated 1 comment.

Files not reviewed (12)
  • meta/requirements.txt: Language not supported
  • tools/simulator/core/engine.py: Evaluated as low risk
  • scratchpad/utils/client/req.py: Evaluated as low risk
  • scratchpad/utils/ui/init.py: Evaluated as low risk
  • tools/simulator/core/request.py: Evaluated as low risk
  • tools/simulator/core/policies/routing/random.py: Evaluated as low risk
  • scratchpad/utils/client/init.py: Evaluated as low risk
  • tools/simulator/core/policies/routing/_base.py: Evaluated as low risk
  • tools/simulator/core/policies/init.py: Evaluated as low risk
  • tools/client/req.py: Evaluated as low risk
  • scratchpad/utils/ui/ui.py: Evaluated as low risk
  • tools/shepherd/prompt_builder.py: Evaluated as low risk
Comments suppressed due to low confidence (6)

tools/shepherd/data_gen.py:18

  • The print statement should use parentheses to correctly call the len function: f"[{len(questions)}/{args.num_samples}] Score: {score}, Question: {datum}"
f"[len(questions)/{args.num_samples}] Score: {score}, Question: {datum}"

tools/shepherd/data_gen.py:23

  • Use os.path.join for better cross-platform compatibility: with open(os.path.join('.local', 'calibration.jsonl'), 'w') as f:
with open(".local/calibration.jsonl", "w") as f:

tools/simulator/cli/start_simulator.py:39

  • The make_table function assumes that data is not empty and that data[0] has a keys method. Add a check to ensure data is not empty and that data[0] has a keys method.
console.print(make_table("Summary", server.summary))

tools/shepherd/response_collector.py:12

  • The response is checked only for None. Consider checking for other invalid responses like empty strings or malformed JSON.
if response is None:

tools/shepherd/response_collector.py:30

  • The LLM class instantiation is repeated within the loop. Consider moving it outside the loop for optimization.
for i, datum in tqdm(enumerate(data)):

tools/shepherd/response_collector.py:30

  • The tqdm progress bar is not properly utilized. It should be used with the for loop directly.
for i, datum in tqdm(enumerate(data)):

@xzyaoi xzyaoi merged commit 3c35dd5 into dev Jan 3, 2025
@xzyaoi xzyaoi deleted the feature/shepherd branch January 3, 2025 13:40
@xzyaoi xzyaoi mentioned this pull request Jan 14, 2025
xzyaoi added a commit that referenced this pull request Jan 14, 2025
Changelog:
- Initial Topping Support (#10, @xzyaoi, @enothum)
- Qwen model support (#24, @xzyaoi)
- Initial Shepherd (routing) demo (#20, @xzyaoi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shepherd: Multi-Model, Multi-Machine Monitoring and Management

2 participants