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

feat: provide access method with api for 7B:int8 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

streetycat
Copy link

you can access it with follow:

1. ui: input http://$host/, you can get a webpage.
2. api: POST http://$host/generate, with `body`:
     class RepetitionPenalty(BaseModel):
         range: Optional[int] = 1024
         slope: Optional[float] = 0
         value: Optional[float] = 1.15

     class GenerateParam(BaseModel):
         prompts: Union[List[str], str]
         max_gen_len: Optional[int] = 1024
         temperature: Optional[float] = 0.8
         top_p: Optional[float] = 0.95
         repetition_penalty: Optional[RepetitionPenalty] = RepetitionPenalty()

    you can get a json:
        {
              error: int,
              msg: "error messages",
              results: {results from llama}
        }

… with follow:

    1. ui: input http://$host/, you can get a webpage.
    2. api: POST http://$host/generate, with `body`:
         class RepetitionPenalty(BaseModel):
             range: Optional[int] = 1024
             slope: Optional[float] = 0
             value: Optional[float] = 1.15

         class GenerateParam(BaseModel):
             prompts: Union[List[str], str]
             max_gen_len: Optional[int] = 1024
             temperature: Optional[float] = 0.8
             top_p: Optional[float] = 0.95
             repetition_penalty: Optional[RepetitionPenalty] = RepetitionPenalty()

        you can get a json:
            {
                  error: int,
                  msg: "error messages",
                  results: {results from llama}
            }
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.

1 participant