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: CompletionProvider API #379

Open
wants to merge 105 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
e4b7490
added layout replaystrat mixin (partially complete)
FFFiend Jun 23, 2023
3ea5cf1
fixed return value
FFFiend Jun 23, 2023
ed74db9
removed extra space
FFFiend Jun 23, 2023
b9453c8
removed unintended methods
FFFiend Jun 23, 2023
0d3000d
reordered imports
FFFiend Jun 23, 2023
009dd8d
ordered imports
FFFiend Jun 23, 2023
f8f2c90
changed type contract of path list to str
FFFiend Jun 24, 2023
4e59ccc
Merge branch 'MLDSAI:main' into main
FFFiend Jun 26, 2023
d17e35c
fixed formatting
FFFiend Jun 26, 2023
bdd2ad5
Merge branch 'MLDSAI:main' into main
FFFiend Jun 27, 2023
7903161
Merge branch 'OpenAdaptAI:main' into main
FFFiend Jun 29, 2023
7b9c9b2
added test images and complete test suite.
FFFiend Jun 29, 2023
ff85ce9
added failure case handling for unsupported doc types (gui and such)
FFFiend Jun 29, 2023
775c3d9
fixed file paths
FFFiend Jun 29, 2023
f4ff09b
Merge branch 'OpenAdaptAI:main' into main
FFFiend Jul 2, 2023
a1c56c8
removed layoutlm file
FFFiend Jul 6, 2023
6de8c69
Merge branch 'OpenAdaptAI:main' into main
FFFiend Jul 7, 2023
dc18646
Merge branch 'OpenAdaptAI:main' into main
FFFiend Jul 11, 2023
836c0b0
created folders, started on model api file
FFFiend Jul 12, 2023
8eaa432
added init file
FFFiend Jul 12, 2023
7465107
added check model availability function
FFFiend Jul 12, 2023
b6ef7d6
changed name of folder to ml_models
FFFiend Jul 12, 2023
fd1af9f
got rid of layout files
FFFiend Jul 12, 2023
96373f1
changed to correct syntax
FFFiend Jul 12, 2023
30e7a84
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Jul 19, 2023
73751cc
started on model api implementation
FFFiend Jul 20, 2023
9fe6f8d
added get_recording_by_id func
FFFiend Jul 20, 2023
e6a5baf
created finetune and infer files, fleshed out gpt4 dir
FFFiend Jul 20, 2023
5d3c892
fleshed out gpt4 dir
FFFiend Jul 20, 2023
31c9853
added a few details
FFFiend Jul 20, 2023
e2177b3
added a few details
FFFiend Jul 20, 2023
b2b1eb2
added some more code to finetune.py
FFFiend Jul 20, 2023
72e78a1
renamed instances of gpt4 to gpt3_davinci
FFFiend Jul 20, 2023
9579a29
added new static classes
FFFiend Jul 26, 2023
04491a9
added new classes
FFFiend Jul 26, 2023
9d6428e
added more code to davinci finetune file
FFFiend Jul 26, 2023
e0ad0a6
updated todo string
FFFiend Jul 26, 2023
32d8037
added state key data compression todo
FFFiend Jul 26, 2023
ff28f0d
Merge branch 'main' into models_branch
FFFiend Jul 31, 2023
abd5522
added completion provider base class
FFFiend Aug 1, 2023
8ed1434
added gpt3 davinci provider class template
FFFiend Aug 1, 2023
e7579ee
added gpt3 completion provider
FFFiend Aug 1, 2023
8e1f571
added hf models folder inside ml_models
FFFiend Aug 1, 2023
0512109
changed name to base_provider.py
FFFiend Aug 1, 2023
4bcd1d1
added completion_factory class
FFFiend Aug 1, 2023
fe6d728
added completion_Factory class
FFFiend Aug 1, 2023
2dd0d37
added correct attributes to gpt class
FFFiend Aug 1, 2023
c8b7644
added availability class
FFFiend Aug 1, 2023
b59e00e
added conda image generator file (for running models on Modal)
FFFiend Aug 1, 2023
34c7593
removed None default
FFFiend Aug 1, 2023
0067d1b
addressed a few changes, fixed formatting
FFFiend Aug 4, 2023
905e5b4
removed get recording by id due to unused
FFFiend Aug 8, 2023
ea6ad7d
added generic hf provider file
FFFiend Aug 16, 2023
6f50ec8
added more code to hf class
FFFiend Aug 16, 2023
cb1482b
added more code to hf infer function
FFFiend Aug 16, 2023
327a90f
added save model and finetune function signatures
FFFiend Aug 16, 2023
7ce81c9
added exception file
FFFiend Aug 16, 2023
012fbec
added gpunotavailable error class
FFFiend Aug 16, 2023
3e4127a
made create_pipeline method private
FFFiend Aug 18, 2023
85fb70e
added assert statement inside infer, added documentation on remote_co…
FFFiend Aug 18, 2023
a34688b
fixed utils file
FFFiend Aug 19, 2023
3f715bb
removed _create_pipeline method
FFFiend Aug 19, 2023
3173913
moved utils outside
FFFiend Aug 19, 2023
9e23e08
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 19, 2023
aa1abbc
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 24, 2023
146330c
finishing up tests
FFFiend Aug 25, 2023
f8e252d
reformatted test file
FFFiend Aug 25, 2023
0868fc7
refactoring along with some tests complete. Ready to merge.
FFFiend Aug 25, 2023
d15d57c
following YAGNI, deprecated functions from hf provider.
FFFiend Aug 25, 2023
a2ab7db
erased blank line
FFFiend Aug 25, 2023
73248ce
updated modal.py docstring
FFFiend Aug 25, 2023
c9c97d6
removed einops package
FFFiend Aug 25, 2023
9e3b2d2
updated modal docstring.
FFFiend Aug 25, 2023
c6e6dc6
added docstrings to ERRYTHANG
FFFiend Aug 25, 2023
1a9bdb0
black
FFFiend Aug 25, 2023
ea7c75c
added docstring to cleanup method in productivity.py
FFFiend Aug 25, 2023
1ac25be
removed print statement
FFFiend Aug 25, 2023
ffe1e95
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 25, 2023
6179724
productivity doc
FFFiend Aug 25, 2023
8809879
Merge branch 'models_branch' of https://github.com/Owais-Enhancement-…
FFFiend Aug 25, 2023
0d61b6a
fixed formatting
FFFiend Aug 25, 2023
1507f27
fixed formatting?
FFFiend Aug 25, 2023
be078c7
added fullstop
FFFiend Aug 25, 2023
bcf7a8a
finally fixed formatting?
FFFiend Aug 25, 2023
7402fe1
removed unnecessary object
FFFiend Aug 26, 2023
b8e902d
Merge branch 'main' into models_branch
FFFiend Aug 28, 2023
b6b8cb8
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 28, 2023
659236b
removed blank lin
FFFiend Aug 28, 2023
d0bfc84
fixed productivity styling
FFFiend Aug 28, 2023
5ff6b82
fixing flake8
FFFiend Aug 28, 2023
362dd91
FIXED FLAKE8
FFFiend Aug 28, 2023
6289dce
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 28, 2023
cb63f06
added commit suggestion
FFFiend Aug 29, 2023
72dfcba
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 29, 2023
4f35766
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 29, 2023
91aa924
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 30, 2023
d578480
fixed pytest in alembic
FFFiend Aug 30, 2023
0bf1556
tesT_events fix
FFFiend Aug 30, 2023
4861d07
changed folder name
FFFiend Aug 30, 2023
1230073
added openai api key
FFFiend Aug 30, 2023
738d0b4
added skip on openai test if no key found
FFFiend Aug 30, 2023
aa0daa7
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 30, 2023
1002f34
Merge branch 'OpenAdaptAI:main' into models_branch
FFFiend Aug 30, 2023
64f204e
added changes
FFFiend Aug 31, 2023
b008fc9
removed exception
FFFiend Sep 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed return value
FFFiend committed Jun 23, 2023
commit 3ea5cf1b135473a9b05cd23f5782ef4d4746df50
2 changes: 1 addition & 1 deletion openadapt/strategies/mixins/layout.py
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ def document_query(
query_pipeline = pipeline("document-question-answering",
model = "impira/layoutlm-document-qa")

return query_pipeline(image, question)['answer']
return query_pipeline(image, question)[0]['answer']

def extract_table(
self