Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add llama_cpp_runner.py for Llama CPP evaluation #82

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Conversation

rishsriv
Copy link
Member

@rishsriv rishsriv commented Feb 10, 2024

We can now use llama-cpp and llama-cpp-python to run sql-eval.

To test with a q5 quant of sqlcoder-7b-2

python -W ignore main.py \
  -db postgres \
  -o "results/results.csv" \
  -g llama_cpp \
  -f "prompts/prompt.md" \
  -m ~/.defog/sqlcoder-7b-q5_k_m.gguf

Additionally, if you would like to always report your results to an upload_url, even if it's not explicitly provided, you can now set it in your environment variables as SQL_EVAL_UPLOAD_URL

Copy link
Collaborator

@wongjingping wongjingping left a comment

Choose a reason for hiding this comment

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

Thanks for adding this capability to sql-eval! This would make running evaluations on different hardware more transparent and debuggable 👍🏼

upload_results(
results=results,
url=args.upload_url,
runner_type="api_runner",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: should this be llama_cpp_runner?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, yes! Fixing!

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks for identifying this!

@rishsriv rishsriv merged commit 8890d40 into main Feb 13, 2024
2 checks passed
@rishsriv rishsriv deleted the rishabh/llama-cpp branch February 13, 2024 04:34
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.

2 participants