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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add llama hugging face apis #7

Merged
merged 13 commits into from
Jul 20, 2023
Merged

feat: add llama hugging face apis #7

merged 13 commits into from
Jul 20, 2023

Conversation

mattzcarey
Copy link
Contributor

No description provided.



class ChatCompletion:
class Choice:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

enclosing classes makes more sense here

@StanGirard
Copy link
Contributor

LGTM, what do you think @MaximeThoonsen ?

@mattzcarey mattzcarey changed the title chore: refactor into folders feat: refactor base classes into reusable pieces Jul 20, 2023
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for that !

@@ -72,7 +72,7 @@ cd ../../gpt4all-bindings/python
pip3 install -e .
```

7. Download it to your local machine from [here](https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin) and put it in the `genoss/model` directory as `genoss/model/ggml-gpt4all-j-v1.3-groovy.bin`
7. Download it to your local machine from [here](https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin) and put it in the `local_models` directory as `local_models/ggml-gpt4all-j-v1.3-groovy.bin`
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree

@@ -1,6 +1,6 @@
from ast import List
from fastapi import APIRouter
from genoss.model.gpt4all_llm import Gpt4AllLLM
from genoss.model.llm.local.gpt4all import Gpt4AllLLM
Copy link
Contributor

Choose a reason for hiding this comment

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

Agree more clear

@mattzcarey mattzcarey changed the title feat: refactor base classes into reusable pieces feat: add llama hugging face apis Jul 20, 2023

llm_chain = LLMChain(llm=llm, prompt=prompt_template)
response_text = llm_chain(question)

print("###################")
Copy link
Contributor

Choose a reason for hiding this comment

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

logger instead of that

response_text = llm_chain(last_messages)

llm_chain = LLMChain(llm=llm, prompt=prompt_template)
response_text = llm_chain(question)
print("###################")
Copy link
Contributor

Choose a reason for hiding this comment

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

print

@mattzcarey mattzcarey merged commit 5a7505a into main Jul 20, 2023
1 check failed
@mattzcarey mattzcarey deleted the feat/llamav2 branch July 20, 2023 14:58
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.

None yet

3 participants