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

Integration of CTransformers for benchmarks. #70

Merged
merged 28 commits into from
Dec 2, 2023

Conversation

Anindyadeep
Copy link
Member

@Anindyadeep Anindyadeep commented Nov 24, 2023

This PR integrates CTransformers to allow user to benchmark models used using CTransformers.

Addresses Issue #22

@Anindyadeep Anindyadeep marked this pull request as draft November 24, 2023 04:34
@Anindyadeep Anindyadeep marked this pull request as ready for review November 28, 2023 20:45
Copy link
Collaborator

@nsosio nsosio left a comment

Choose a reason for hiding this comment

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

@Anindyadeep I left some comments :) furthermore, you need to update also the README.md.template with the values for ctranslate on cpu, metal (M2 Pro) and cuda on A100

bench_ctransformers/bench.py Outdated Show resolved Hide resolved
bench_ctransformers/bench.sh Outdated Show resolved Hide resolved
bench_ctransformers/bench.sh Outdated Show resolved Hide resolved
bench_ctransformers/bench.sh Outdated Show resolved Hide resolved
bench_ctransformers/bench.sh Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pin at least the major versions

docs/llama2.md Outdated Show resolved Hide resolved
@Anindyadeep Anindyadeep marked this pull request as draft December 1, 2023 14:57
@Anindyadeep Anindyadeep marked this pull request as ready for review December 1, 2023 20:09
bench_ctransformers/setup.sh Outdated Show resolved Hide resolved
source "$VENV_DIR/bin/activate"
fi

install_device_specific_ctransformers "$DEVICE"
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't we move this after installing the requirements (line 79) to avoid reinstalling it every time? and remove the activation of the environment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh yes

@nsosio nsosio added the enhancement New feature or request label Dec 2, 2023
Anindyadeep and others added 2 commits December 2, 2023 15:58
Co-authored-by: Nicola Sosio <[email protected]>
- reverted back the conditional statement.
- placed install_ctransformers_cuda() function after requirements installation.
@nsosio nsosio merged commit 0fd5860 into premAI-io:main Dec 2, 2023
1 check passed
@nsosio nsosio mentioned this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants