SkywardAI / kirin

APIs aggregator for inference, fine-tuning and build models.
https://skywardai.github.io/skywardai.io/
Apache License 2.0
5 stars 7 forks source link

remove kimchima #191

Closed Aisuko closed 1 week ago

Aisuko commented 1 week ago

Description

This PR fixes #190

Notes for Reviewers

Hi folks, in this PR we focus on minimize the container's size. We change the repo name, because we want this project to be a APIs aggregator. It can support both GNU Linux/amd64 and arm64.

Signed commits

I have tested one of the APIs with devcontainer. It should work.

INFO:     Will watch for changes in these directories: ['/workspaces/kirin/backend']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [1405] using StatReload
2024-07-04 08:55:21.639 | INFO     | src.repository.vector_database:__init__:15 - Vector Database --- Connected to Milvus.
INFO:     Started server process [1642]
INFO:     Waiting for application startup.
2024-07-04 08:55:21.688 | INFO     | src.repository.events:initialize_db_connection:79 - Database Connection --- Establishing . . .
2024-07-04 08:55:21.741 | INFO     | src.repository.events:inspect_db_server_on_connection:22 - New DB API Connection ---
 <AdaptedConnection <asyncpg.connection.Connection object at 0x7f7dc051ac50>>
2024-07-04 08:55:21.741 | INFO     | src.repository.events:inspect_db_server_on_connection:23 - Connection Record ---
 <sqlalchemy.pool.base._ConnectionRecord object at 0x7f7da04682f0>
2024-07-04 08:55:21.742 | INFO     | src.repository.events:initialize_db_tables:35 - Database Table Creation --- Initializing . . .
2024-07-04 08:55:21.804 | INFO     | src.repository.events:initialize_db_tables:40 - Database Table Creation --- Successfully Initialized!
2024-07-04 08:55:21.808 | INFO     | src.repository.events:initialize_anonymous_user:43 - Anonymous user --- Creating . . .
(trapped) error reading bcrypt version
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
    version = _bcrypt.__about__.__version__
              ^^^^^^^^^^^^^^^^^
AttributeError: module 'bcrypt' has no attribute '__about__'
2024-07-04 08:55:22.156 | INFO     | src.repository.events:initialize_anonymous_user:58 - Anonymous user --- Successfully Created!
2024-07-04 08:55:22.156 | INFO     | src.repository.events:initialize_admin_user:61 - Admin user --- Creating . . .
2024-07-04 08:55:22.457 | INFO     | src.repository.events:initialize_admin_user:76 - Admin user --- Successfully Created!
2024-07-04 08:55:22.458 | INFO     | src.repository.events:initialize_db_connection:89 - Database Connection --- Successfully Established!
2024-07-04 08:55:22.459 | INFO     | src.repository.events:initialize_vectordb_collection:94 - Vector Database Connection --- Establishing . . .
2024-07-04 08:55:22.461 | INFO     | src.repository.vector_database:create_collection:43 - Vector Databse --- Milvus: collection default_collection exist, dropping..
2024-07-04 08:55:26.001 | INFO     | src.repository.vector_database:create_collection:47 - Vector Database --- Milvus: collection default_collection created
2024-07-04 08:55:26.001 | INFO     | src.repository.events:initialize_vectordb_collection:107 - Vector Database Connection --- Successfully Established!
2024-07-04 08:55:26.002 | INFO     | src.repository.events:initialize_inference_client:128 - Inference Client --- Waiting for Initialization . . .
2024-07-04 08:55:26.027 | INFO     | src.repository.events:initialize_inference_client:133 - Inference Client --- Successfully Initialized!
INFO:     Application startup complete.
INFO:     127.0.0.1:37040 - "GET / HTTP/1.1" 404 Not Found
INFO:     127.0.0.1:37040 - "GET / HTTP/1.1" 404 Not Found
INFO:     127.0.0.1:37040 - "GET /docs HTTP/1.1" 200 OK
INFO:     127.0.0.1:37040 - "GET /openapi.json HTTP/1.1" 200 OK
INFO:     127.0.0.1:37040 - "GET /api/version HTTP/1.1" 200 OK
root@dad7281c1d4e:/workspaces/kirin/backend#