-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from homanp/introduce-library
Remove `FastAPI` and setup package
- Loading branch information
Showing
14 changed files
with
62 additions
and
290 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ superenv/ | |
.DS_Store | ||
venv/ | ||
/.vscode | ||
/.codesandbox | ||
/.codesandbox | ||
.pypirc |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
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,19 @@ | ||
import asyncio | ||
|
||
from lib.models.ingest import IngestRequest | ||
from lib.service.flows import create_finetune | ||
|
||
|
||
async def ingest(payload: IngestRequest): | ||
"""Ingest data into pipeline""" | ||
|
||
async def run_training_flow(): | ||
try: | ||
await create_finetune( | ||
payload=payload, | ||
) | ||
except Exception as flow_exception: | ||
raise flow_exception | ||
|
||
asyncio.create_task(run_training_flow()) | ||
return {"success": True} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
name="nagato-ai", | ||
version="0.0.1", | ||
packages=find_packages(), | ||
description="The open framework for finetuning LLMs on private data", | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
author="Ismail Pelaseyed", | ||
author_email="ismail@superagent.sh", | ||
url="https://github.com/homanp/nagato", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
) |