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

Feature: xorbitsai/inference support #122

Open
imotai opened this issue Oct 7, 2023 · 0 comments
Open

Feature: xorbitsai/inference support #122

imotai opened this issue Oct 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@imotai
Copy link
Contributor

imotai commented Oct 7, 2023

Context

for a better and stable inference performance

Current Solution
the client code

prompt = f"""{self.prefix}
{chat_history}
{self.user_name}: {user_input}
{self.ai_name}:"""
logging.info(f"{prompt}")
data = {
"n_predict": 500,
"grammar": self.grammar,
"prompt": prompt,
"temperature": temperature,
"stream": True,
"repeat_last_n": 256,
"top_p": 0.9,
"stop": [
"</s>",
"\n",
"%s:" % self.ai_name,
"%s:" % self.user_name,
],
}

the llama server

echo "start codellama with model name $3"
mkdir -p ${ROOT_DIR}/model_server
cd ${ROOT_DIR}/model_server && hap run -n codellama -- server -m ../model/$3 --alias codellama --host 127.0.0.1 --port 8080

@imotai imotai added the enhancement New feature or request label Oct 7, 2023
@imotai imotai changed the title feature: xorbitsai/inference support Feature: xorbitsai/inference support Oct 7, 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

No branches or pull requests

1 participant