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

Configurable context_window and tokenizer #1437

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Conversation

imartinez
Copy link
Collaborator

Extract two key model parameters to settings.

  • Tokenizer: used to calculate the available context window given a prompt in several LlamaIndex pipelines. The default tokenizer is the one used for gpt-3.5 but it is not aligned with, for example, Mistral model. Using huggingface as provider of the tokenizer information, added to setup download script.
  • context_window: base model argument

@imartinez imartinez merged commit 4780540 into main Dec 21, 2023
6 checks passed
@imartinez imartinez deleted the feature/llm-settings branch December 21, 2023 13:49
@cognitivetech
Copy link
Contributor

is there a way to make this setup script not download the model if I already have it?

running setup for embeddings \ tokenizer.. since I don't know how to add those manually but it also triggers superfluous model download.

alternatively it would be nice to have a documented way to manually download and configure embeddings \ tokenizer

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.

3 participants