kingbri
1ec8eb9620
Tree: Format
...
Signed-off-by: kingbri <bdashore3@proton.me>
2024-03-13 00:02:55 -04:00
kingbri
78f920eeda
Tree: Refactor code organization
...
Move common functions into their own folder and refactor the backends
to use their own folder as well.
Also cleanup imports and alphabetize import statments themselves.
Finally, move colab and docker into their own folders as well.
Signed-off-by: kingbri <bdashore3@proton.me>
2024-01-25 00:15:40 -05:00
kingbri
442bb59f8f
Tests: Remove logger class
...
The logger module could not be found when calling the test. Re-add
the color logging at a later time.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-25 15:20:39 -05:00
AlpinDale
6a5bbd217c
feat: logging ( #39 )
...
* add logging
* simplify the logger
* formatting
* final touches
* fix format
* Model: Add log to metrics
Signed-off-by: kingbri <bdashore3@proton.me>
---------
Authored-by: AlpinDale <52078762+AlpinDale@users.noreply.github.com>
2023-12-23 04:33:31 +00:00
AlpinDale
fa47f51f85
feat: workflows for formatting/linting ( #35 )
...
* add github workflows for pylint and yapf
* yapf
* docstrings for auth
* fix auth.py
* fix generators.py
* fix gen_logging.py
* fix main.py
* fix model.py
* fix templating.py
* fix utils.py
* update formatting.sh to include subdirs for pylint
* fix model_test.py
* fix wheel_test.py
* rename utils to utils_oai
* fix OAI/utils_oai.py
* fix completion.py
* fix token.py
* fix lora.py
* fix common.py
* add pylintrc and fix model.py
* finish up pylint
* fix attribute error
* main.py formatting
* add formatting batch script
* Main: Remove unnecessary global
Linter suggestion.
Signed-off-by: kingbri <bdashore3@proton.me>
* switch to ruff
* Formatting + Linting: Add ruff.toml
Signed-off-by: kingbri <bdashore3@proton.me>
* Formatting + Linting: Switch scripts to use ruff
Also remove the file and recent file change functions from both
scripts.
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format and lint
Signed-off-by: kingbri <bdashore3@proton.me>
* Scripts + Workflows: Format
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Remove pylint flags
We use ruff now
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format
Signed-off-by: kingbri <bdashore3@proton.me>
* Formatting: Line length is 88
Use the same value as Black.
Signed-off-by: kingbri <bdashore3@proton.me>
* Tree: Format
Update to new line length rules.
Signed-off-by: kingbri <bdashore3@proton.me>
---------
Authored-by: AlpinDale <52078762+AlpinDale@users.noreply.github.com>
Co-authored-by: kingbri <bdashore3@proton.me>
2023-12-22 16:20:35 +00:00
kingbri
f631dd6ff7
Templates: Switch to Jinja2
...
Jinja2 is a lightweight template parser that's used in Transformers
for parsing chat completions. It's much more efficient than Fastchat
and can be imported as part of requirements.
Also allows for unblocking Pydantic's version.
Users now have to provide their own template if needed. A separate
repo may be usable for common prompt template storage.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-18 23:53:47 -05:00
kingbri
59729e2a4a
Tests: Fix linting
...
Also change how wheel_test works for safe import testing rather than
trying to import the package which can cause system issues.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-13 23:05:50 -05:00
kingbri
161c9d2c19
Tests: Fix wheel test
...
Fastchat is named fschat from the package's point of view.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-08 01:15:24 -05:00
kingbri
9f34af4906
Tests: Create
...
Add a few tests for the user to check if stuff works.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-06 00:53:42 -05:00