generated from tensorchord/modelz-template-mosec
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add embedding support in main.py (#22)
* add embedding support in main.py * use llmspec structs, add engine route Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * use sentence_transformers Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * fix EmbeddingData import Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * fix EmbeddingData Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * fix engine routes Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * remove duplicated line Co-authored-by: Keming <kemingy94@gmail.com> * fixes Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * add token count support Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * merge embedding classes Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * fix imports Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * remove SentenceTransformer code Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> * add requirements-cpu.txt Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> --------- Signed-off-by: Teddy Xinyuan Chen <45612704+tddschn@users.noreply.github.com> Signed-off-by: Keming <kemingyang@tensorchord.ai> Co-authored-by: Keming <kemingy94@gmail.com> Co-authored-by: Keming <kemingyang@tensorchord.ai>
- Loading branch information
1 parent
c528ffe
commit e64293d
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
msgpack | ||
mosec | ||
torch --extra-index-url https://download.pytorch.org/whl/cpu | ||
diffusers[torch] | ||
transformers | ||
llmspec | ||
falcon | ||
uvicorn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ accelerate | |
llmspec | ||
falcon | ||
uvicorn | ||
sentence_transformers |