-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ update ]: Cythonize Machine Learning Utilities
- Loading branch information
1 parent
e842f81
commit e8ac98a
Showing
42 changed files
with
61,916 additions
and
4,200 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
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 |
---|---|---|
@@ -1,5 +1,56 @@ | ||
# makefile for building and running the application | ||
|
||
.PHONY: all cutils ctrain cpostman converter run clean | ||
|
||
# default target to build all components | ||
all: cutils ctrain cpostman | ||
|
||
# build Cython extensions in restful/cutils | ||
cutils: | ||
cd restful/cutils && python setup.py build_ext --inplace && cd ../.. | ||
@echo "Building Cython extensions in restful/cutils..." | ||
@cd restful/cutils && python setup.py build_ext --inplace | ||
|
||
|
||
# build Cython extensions in training | ||
ctrain: | ||
@echo "Building Cython extensions in training..." | ||
@cd training && python setup.py build_ext --inplace | ||
|
||
|
||
# build Cython extensions in postman | ||
cpostman: | ||
@echo "Building Cython extensions in postman..." | ||
@cd postman && python setup.py build_ext --inplace | ||
|
||
|
||
# run the converter script | ||
converter: | ||
@echo "Running converter script..." | ||
@python postman/converter.py | ||
|
||
|
||
# run the application with uvicorn | ||
run: | ||
uvicorn app:app --host 0.0.0.0 --port 7860 --reload | ||
@echo "Starting the application..." | ||
@uvicorn app:app --host 0.0.0.0 --port 7860 --reload | ||
|
||
|
||
# clean up build artifacts | ||
clean: | ||
@echo "Cleaning up build artifacts..." | ||
@find . -type f -name "*.so" -delete | ||
@find . -type f -name "*.c" -delete | ||
@find . -type f -name "*.cpp" -delete | ||
@find . -type d -name "__pycache__" -exec rm -r {} + | ||
|
||
|
||
# help message | ||
help: | ||
@echo "Usage:" | ||
@echo " make all - Build all Cython extensions" | ||
@echo " make cutils - Build Cython extensions in restful/cutils" | ||
@echo " make ctrain - Build Cython extensions in training" | ||
@echo " make cpostman - Build Cython extensions in postman" | ||
@echo " make converter - Run the converter script" | ||
@echo " make run - Start the application with Uvicorn" | ||
@echo " make clean - Remove build artifacts" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+371 KB
postman/build/lib.linux-x86_64-3.10/json.cpython-310-x86_64-linux-gnu.so
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
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 @@ | ||
#error Do not use this file, it is the result of a failed Cython compilation. |
Binary file not shown.
Oops, something went wrong.