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

multiple model support added for llm #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sgurunat
Copy link
Owner

Description

Multiple model support added for llm.

Ubuntu and others added 2 commits October 28, 2024 07:16

def get_model_endpoint(model_name: Optional[str], default_endpoint: str, model_configs: str) -> str:

Choose a reason for hiding this comment

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

  1. Let move this func to init flow so that we do not need to parse json on each generate call.
  2. Also support providing the json as a file read.

context_str = "\n".join(documents)
if context_str and len(re.findall("[\u4E00-\u9FFF]", context_str)) / len(context_str) >= 0.3:
# chinese context
if(model=="meta-llama/Meta-Llama-3.1-70B-Instruct"):

Choose a reason for hiding this comment

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

same will be true for 8B model as well.

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