Skip to content

Remove tiktoken flag #426

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

Merged
merged 5 commits into from
Apr 23, 2024
Merged

Remove tiktoken flag #426

merged 5 commits into from
Apr 23, 2024

Conversation

mikekgfb
Copy link
Contributor

remove tiktoken flag
prepare gguf load time reduction

@mikekgfb mikekgfb requested a review from metascroy April 23, 2024 21:22
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 23, 2024
Comment on lines +356 to +359
t0 = time.time()
model = _load_model(builder_args, only_config=True)
device_sync(device=builder_args.device)
print(f"Time to load model: {time.time() - t0:.02f} seconds")
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is repeated thrice in this PR. Can we have something like

with report_block-time("Time to load model"):
     model =  _load_model(builder_args, only_config=True)
     device_sync(device=builder_args.device)

@mikekgfb mikekgfb merged commit 06ac1da into main Apr 23, 2024
@malfet malfet deleted the gguf_load_time_reduction_prep branch April 30, 2024 16:50
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
malfet pushed a commit that referenced this pull request Jul 17, 2024
* remove need for toktoken flag

* can't pass self to a function

* remove toktoken cli flag

* eliminate need to load entire model when we only need model.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants