|
498 | 498 | "source": [ |
499 | 499 | "%%bash\n", |
500 | 500 | "cd .. \n", |
| 501 | + "\n", |
| 502 | + "rm -rf serving/model_store\n", |
| 503 | + "mkdir -p serving/model_store\n", |
| 504 | + "\n", |
501 | 505 | "cp artifacts/model/distilbert-base-uncased__trace/model_store/* serving/model_store\n", |
502 | 506 | "cp artifacts/model/distilbert-base-uncased__trace/setup_config.json serving/model_store/" |
503 | 507 | ] |
|
548 | 552 | }, |
549 | 553 | { |
550 | 554 | "cell_type": "code", |
551 | | - "execution_count": 8, |
| 555 | + "execution_count": 1, |
552 | 556 | "id": "pretty-graphic", |
553 | 557 | "metadata": {}, |
554 | 558 | "outputs": [], |
|
562 | 566 | }, |
563 | 567 | { |
564 | 568 | "cell_type": "code", |
565 | | - "execution_count": 9, |
| 569 | + "execution_count": 2, |
566 | 570 | "id": "missing-champagne", |
567 | 571 | "metadata": {}, |
568 | 572 | "outputs": [ |
|
580 | 584 | }, |
581 | 585 | { |
582 | 586 | "cell_type": "code", |
583 | | - "execution_count": 10, |
| 587 | + "execution_count": 3, |
584 | 588 | "id": "endangered-responsibility", |
585 | 589 | "metadata": {}, |
586 | 590 | "outputs": [ |
587 | 591 | { |
588 | 592 | "name": "stdout", |
589 | 593 | "output_type": "stream", |
590 | 594 | "text": [ |
591 | | - "2021-10-25 16:47:59,303 [INFO ] W-9001-pt_classifier_1.0-stdout MODEL_LOG - Torch worker started.\r\n", |
592 | | - "2021-10-25 16:47:59,303 [INFO ] W-9001-pt_classifier_1.0-stdout MODEL_LOG - Python runtime: 3.7.10\r\n", |
593 | | - "2021-10-25 16:47:59,306 [INFO ] W-9001-pt_classifier_1.0-stdout MODEL_LOG - Connection accepted: /tmp/.ts.sock.9001.\r\n", |
594 | | - "2021-10-25 16:47:59,311 [INFO ] W-9001-pt_classifier_1.0-stdout MODEL_LOG - model_name: pt_classifier, batchSize: 1\r\n", |
595 | | - "2021-10-25 16:47:59,357 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - Listening on port: /tmp/.ts.sock.9003\r\n", |
596 | | - "2021-10-25 16:47:59,358 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - [PID]6980\r\n", |
597 | | - "2021-10-25 16:47:59,358 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - Torch worker started.\r\n", |
598 | | - "2021-10-25 16:47:59,358 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - Python runtime: 3.7.10\r\n", |
599 | | - "2021-10-25 16:47:59,359 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - Connection accepted: /tmp/.ts.sock.9003.\r\n", |
600 | | - "2021-10-25 16:47:59,364 [INFO ] W-9003-pt_classifier_1.0-stdout MODEL_LOG - model_name: pt_classifier, batchSize: 1\r\n" |
| 595 | + "2021-10-25 17:52:13,208 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Connection accepted: /tmp/.ts.sock.9000.\r\n", |
| 596 | + "2021-10-25 17:52:13,233 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - model_name: pt_classifier, batchSize: 1\r\n", |
| 597 | + "2021-10-25 17:52:13,676 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Transformers version 4.11.1\r\n", |
| 598 | + "2021-10-25 17:52:35,354 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Transformer model from path /tmp/models/84448fbb0cf64f8fa122a52b62531894 loaded successfully\r\n", |
| 599 | + "2021-10-25 17:53:10,874 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Received text: 'herbal tea'\r\n", |
| 600 | + "2021-10-25 17:53:10,874 [WARN ] W-9000-pt_classifier_1.0-stderr MODEL_LOG - Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=True` to explicitly truncate examples to max length. Defaulting to 'longest_first' truncation strategy. If you encode pairs of sequences (GLUE-style) with the tokenizer you can select this strategy more precisely by providing a specific strategy to `truncation`.\r\n", |
| 601 | + "2021-10-25 17:53:19,419 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Received text: 'herbal tea'\r\n", |
| 602 | + "2021-10-25 17:53:23,218 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Received text: 'herbal tea'\r\n", |
| 603 | + "2021-10-25 17:53:25,753 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Received text: 'herbal tea'\r\n", |
| 604 | + "2021-10-25 17:53:27,878 [INFO ] W-9000-pt_classifier_1.0-stdout MODEL_LOG - Received text: 'Herbal Tea'\r\n" |
601 | 605 | ] |
602 | 606 | } |
603 | 607 | ], |
|
607 | 611 | }, |
608 | 612 | { |
609 | 613 | "cell_type": "code", |
610 | | - "execution_count": 11, |
| 614 | + "execution_count": 4, |
611 | 615 | "id": "forbidden-marriage", |
612 | 616 | "metadata": {}, |
613 | 617 | "outputs": [ |
|
638 | 642 | }, |
639 | 643 | { |
640 | 644 | "cell_type": "code", |
641 | | - "execution_count": null, |
| 645 | + "execution_count": 5, |
642 | 646 | "id": "sixth-gardening", |
643 | 647 | "metadata": {}, |
644 | 648 | "outputs": [], |
|
664 | 668 | }, |
665 | 669 | { |
666 | 670 | "cell_type": "code", |
667 | | - "execution_count": 12, |
| 671 | + "execution_count": 6, |
668 | 672 | "id": "false-council", |
669 | 673 | "metadata": {}, |
670 | 674 | "outputs": [ |
|
705 | 709 | }, |
706 | 710 | { |
707 | 711 | "cell_type": "code", |
708 | | - "execution_count": 13, |
| 712 | + "execution_count": 7, |
709 | 713 | "id": "fancy-rings", |
710 | 714 | "metadata": {}, |
711 | 715 | "outputs": [ |
|
729 | 733 | " \"id\": \"9000\",\r\n", |
730 | 734 | " \"startTime\": \"2021-10-25T17:52:12.170Z\",\r\n", |
731 | 735 | " \"status\": \"READY\",\r\n", |
732 | | - " \"memoryUsage\": 0,\r\n", |
| 736 | + " \"memoryUsage\": 3148378112,\r\n", |
733 | 737 | " \"pid\": 6903,\r\n", |
734 | 738 | " \"gpu\": true,\r\n", |
735 | | - " \"gpuUsage\": \"gpuId::0 utilization.gpu [%]::0 % utilization.memory [%]::0 % memory.used [MiB]::1362 MiB\"\r\n", |
| 739 | + " \"gpuUsage\": \"gpuId::0 utilization.gpu [%]::0 % utilization.memory [%]::0 % memory.used [MiB]::1640 MiB\"\r\n", |
736 | 740 | " }\r\n", |
737 | 741 | " ]\r\n", |
738 | 742 | " }\r\n", |
|
762 | 766 | }, |
763 | 767 | { |
764 | 768 | "cell_type": "code", |
765 | | - "execution_count": 17, |
| 769 | + "execution_count": 8, |
766 | 770 | "id": "norman-trader", |
767 | 771 | "metadata": {}, |
768 | 772 | "outputs": [ |
|
779 | 783 | " \"SHOES\": 3.6940335121471435e-05\r\n", |
780 | 784 | " }\r\n", |
781 | 785 | "]\r\n", |
782 | | - "elasped time (sec):0.035052\r\n" |
| 786 | + "elasped time (sec):0.039702\r\n" |
783 | 787 | ] |
784 | 788 | } |
785 | 789 | ], |
|
800 | 804 | }, |
801 | 805 | { |
802 | 806 | "cell_type": "code", |
803 | | - "execution_count": 18, |
| 807 | + "execution_count": 9, |
804 | 808 | "id": "solid-internship", |
805 | 809 | "metadata": {}, |
806 | 810 | "outputs": [ |
|
817 | 821 | " \"SHOES\": 3.6940335121471435e-05\n", |
818 | 822 | " }\n", |
819 | 823 | "]\n", |
820 | | - "elasped time (sec):0.036023\n" |
| 824 | + "elasped time (sec):0.035042\n" |
821 | 825 | ] |
822 | 826 | }, |
823 | 827 | { |
|
828 | 832 | " Dload Upload Total Spent Left Speed\n", |
829 | 833 | "\r", |
830 | 834 | " 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r", |
831 | | - "100 265 100 214 100 51 5940 1415 --:--:-- --:--:-- --:--:-- 7571\n" |
| 835 | + "100 265 100 214 100 51 6106 1455 --:--:-- --:--:-- --:--:-- 7794\n" |
832 | 836 | ] |
833 | 837 | } |
834 | 838 | ], |
|
848 | 852 | "metadata": {}, |
849 | 853 | "outputs": [], |
850 | 854 | "source": [] |
851 | | - }, |
852 | | - { |
853 | | - "cell_type": "code", |
854 | | - "execution_count": null, |
855 | | - "id": "sitting-attack", |
856 | | - "metadata": {}, |
857 | | - "outputs": [], |
858 | | - "source": [] |
859 | | - }, |
860 | | - { |
861 | | - "cell_type": "code", |
862 | | - "execution_count": null, |
863 | | - "id": "positive-geography", |
864 | | - "metadata": {}, |
865 | | - "outputs": [], |
866 | | - "source": [] |
867 | | - }, |
868 | | - { |
869 | | - "cell_type": "code", |
870 | | - "execution_count": null, |
871 | | - "id": "smart-tennis", |
872 | | - "metadata": {}, |
873 | | - "outputs": [], |
874 | | - "source": [] |
875 | | - }, |
876 | | - { |
877 | | - "cell_type": "code", |
878 | | - "execution_count": null, |
879 | | - "id": "deluxe-nebraska", |
880 | | - "metadata": {}, |
881 | | - "outputs": [], |
882 | | - "source": [] |
883 | 855 | } |
884 | 856 | ], |
885 | 857 | "metadata": { |
|
0 commit comments