Skip to content

Commit

Permalink
Mixtral import
Browse files Browse the repository at this point in the history
  • Loading branch information
artitw committed Feb 10, 2024
1 parent dac86f5 commit 84f4b31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="text2text",
version="1.4.0",
version="1.4.1",
author="artitw",
author_email="artitw@gmail.com",
description="Text2Text: Crosslingual NLP/G toolkit",
Expand Down
4 changes: 3 additions & 1 deletion text2text/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,6 @@ def chat_completion(self, messages=[{"role": "user", "content": "hello"}], strea
return results

def transform(self, input_lines, src_lang='en', **kwargs):
return self.chat_completion([{"role": "user", "content": input_lines}])
return self.chat_completion([{"role": "user", "content": input_lines}])

completion = transform
1 change: 1 addition & 0 deletions text2text/mixtral/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .build_model import OffloadConfig, QuantConfig, build_model

0 comments on commit 84f4b31

Please sign in to comment.