Skip to content

Commit

Permalink
refactor: remove sample data insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Nov 17, 2022
1 parent 8ee5f5d commit 53db67e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main/resources/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ INSERT INTO LIBRARY (name) VALUES ('transformers');
INSERT INTO LIBRARY (name) VALUES ('pytorch_lightning');
INSERT INTO LIBRARY (name) VALUES ('xgboost');

INSERT INTO MODEL (CREATED_ON, UPDATED_ON, NAME, LIBRARY_ID) VALUES (now(), now(), 'tensorflowModel', 1);
INSERT INTO MODEL (CREATED_ON, UPDATED_ON, NAME, LIBRARY_ID) VALUES (now(), now(), 'torchModel', 2);
INSERT INTO MODEL_METADATA (CREATED_ON, UPDATED_ON, FILE_NAME, INPUT_DTYPE, INPUT_SHAPE, OUTPUT_DTYPE, OUTPUT_SHAPE, DEVICE_TYPE, STATUS, URL, VERSION, MODEL_ID) VALUES (now(), now(), 'tensorflowModel.h5', 'float32', '(10,)', 'float32', '(1,)', 'cpu', 'SUCCEEDED', 'http://s3.so1s.com/tensorflowModel.h5', 'v1', 1);
INSERT INTO MODEL_METADATA (CREATED_ON, UPDATED_ON, FILE_NAME, INPUT_DTYPE, INPUT_SHAPE, OUTPUT_DTYPE, OUTPUT_SHAPE, DEVICE_TYPE, STATUS, URL, VERSION, MODEL_ID) VALUES (now(), now(), 'tensorflowModel.h5', 'float32', '(10,)', 'float32', '(1,)', 'gpu', 'SUCCEEDED', 'http://s3.so1s.com/tensorflowModel.h5', 'v2', 1);
INSERT INTO MODEL_METADATA (CREATED_ON, UPDATED_ON, FILE_NAME, INPUT_DTYPE, INPUT_SHAPE, OUTPUT_DTYPE, OUTPUT_SHAPE, DEVICE_TYPE, STATUS, URL, VERSION, MODEL_ID) VALUES (now(), now(), 'torchModel.h5', 'float32', '(10,)', 'float32', '(1,)', 'cpu', 'SUCCEEDED', 'http://s3.so1s.com/torchModel.h5', 'v1', 2);
INSERT INTO MODEL_METADATA (CREATED_ON, UPDATED_ON, FILE_NAME, INPUT_DTYPE, INPUT_SHAPE, OUTPUT_DTYPE, OUTPUT_SHAPE, DEVICE_TYPE, STATUS, URL, VERSION, MODEL_ID) VALUES (now(), now(), 'torchModel.h5', 'float32', '(10,)', 'float32', '(1,)', 'cpu', 'FAILED', 'http://s3.so1s.com/torchModel.h5', 'v2', 2);
INSERT INTO MODEL_METADATA (CREATED_ON, UPDATED_ON, FILE_NAME, INPUT_DTYPE, INPUT_SHAPE, OUTPUT_DTYPE, OUTPUT_SHAPE, DEVICE_TYPE, STATUS, URL, VERSION, MODEL_ID) VALUES (now(), now(), 'torchModel.h5', 'float32', '(10,)', 'float32', '(1,)', 'gpu', 'SUCCEEDED', 'http://s3.so1s.com/torchModel.h5', 'v3', 2);

INSERT INTO RESOURCE (NAME, CREATED_ON, UPDATED_ON, CPU, CPU_LIMIT, GPU, GPU_LIMIT, MEMORY, MEMORY_LIMIT) VALUES ('a', now(), now(), '1', '2', '0', '0', '1Gi', '2Gi');
INSERT INTO RESOURCE (NAME, CREATED_ON, UPDATED_ON, CPU, CPU_LIMIT, GPU, GPU_LIMIT, MEMORY, MEMORY_LIMIT) VALUES ('b', now(), now(), '1', '1', '0', '0', '500Mi', '1Gi');

INSERT INTO DEPLOYMENT (CREATED_ON, UPDATED_ON, NAME, STATUS, END_POINT, DEPLOYMENT_STRATEGY_ID, MODEL_METADATA_ID, RESOURCE_ID, STANDARD, STANDARD_VALUE, MIN_REPLICAS, MAX_REPLICAS) VALUES (now(), now(), 'tensorflowModel1Deploy', 'RUNNING', 'http://tensorflowModel1Deploy.test.com/', 1, 1, 1, 'LATENCY', 20, 1, 3);
INSERT INTO DEPLOYMENT (CREATED_ON, UPDATED_ON, NAME, STATUS, END_POINT, DEPLOYMENT_STRATEGY_ID, MODEL_METADATA_ID, RESOURCE_ID, STANDARD, STANDARD_VALUE, MIN_REPLICAS, MAX_REPLICAS) VALUES (now(), now(), 'tensorflowModel2Deploy', 'PENDING', 'http://tensorflowModel1Deploy.test.com/', 1, 2, 1, 'GPU', 60, 1, 3);
INSERT INTO DEPLOYMENT (CREATED_ON, UPDATED_ON, NAME, STATUS, END_POINT, DEPLOYMENT_STRATEGY_ID, MODEL_METADATA_ID, RESOURCE_ID, STANDARD, STANDARD_VALUE) VALUES (now(), now(), 'torchModel2Deploy1', 'RUNNING', 'http://tensorflowModel1Deploy.test.com/', 1, 4, 2, 'REPLICAS', 3);

INSERT INTO DATA_TYPE (NAME) VALUES ('numpy');
INSERT INTO DATA_TYPE (NAME) VALUES ('json');
Expand All @@ -33,5 +19,3 @@ INSERT INTO DATA_TYPE (NAME) VALUES ('multipart');
INSERT INTO DATA_TYPE (NAME) VALUES ('image');
INSERT INTO DATA_TYPE (NAME) VALUES ('dataframe');
INSERT INTO DATA_TYPE (NAME) VALUES ('series');

INSERT INTO TEST (CREATED_ON, UPDATED_ON, NAME, A_ID, B_ID, DOMAIN) VALUES (now(), now(), 'tfabtest', 1, 2, 'tfabtest.so1s.io')

0 comments on commit 53db67e

Please sign in to comment.