|
89 | 89 | "name": "stderr", |
90 | 90 | "output_type": "stream", |
91 | 91 | "text": [ |
92 | | - "2023-04-17 10:53:46.419725: I tensorflow/core/platform/cpu_feature_guard.cc:194] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX\n", |
| 92 | + "2023-04-19 01:35:02.207465: I tensorflow/core/platform/cpu_feature_guard.cc:194] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX\n", |
93 | 93 | "To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n" |
94 | 94 | ] |
95 | 95 | }, |
|
106 | 106 | "text": [ |
107 | 107 | "/usr/local/lib/python3.8/dist-packages/merlin/dtypes/mappings/torch.py:43: UserWarning: PyTorch dtype mappings did not load successfully due to an error: No module named 'torch'\n", |
108 | 108 | " warn(f\"PyTorch dtype mappings did not load successfully due to an error: {exc.msg}\")\n", |
109 | | - "2023-04-17 10:53:47.662982: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
110 | | - "2023-04-17 10:53:47.663430: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
111 | | - "2023-04-17 10:53:47.663612: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n" |
| 109 | + "2023-04-19 01:35:03.422817: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 110 | + "2023-04-19 01:35:03.423265: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 111 | + "2023-04-19 01:35:03.423447: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n" |
112 | 112 | ] |
113 | 113 | }, |
114 | 114 | { |
|
125 | 125 | "name": "stderr", |
126 | 126 | "output_type": "stream", |
127 | 127 | "text": [ |
128 | | - "2023-04-17 10:53:47.910504: I tensorflow/core/platform/cpu_feature_guard.cc:194] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX\n", |
| 128 | + "2023-04-19 01:35:03.695996: I tensorflow/core/platform/cpu_feature_guard.cc:194] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX\n", |
129 | 129 | "To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n", |
130 | | - "2023-04-17 10:53:47.911325: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
131 | | - "2023-04-17 10:53:47.911536: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
132 | | - "2023-04-17 10:53:47.911695: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
133 | | - "2023-04-17 10:53:48.671264: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
134 | | - "2023-04-17 10:53:48.671486: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
135 | | - "2023-04-17 10:53:48.671654: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
136 | | - "2023-04-17 10:53:48.671765: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:42] Overriding orig_value setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", |
137 | | - "2023-04-17 10:53:48.671774: I tensorflow/core/common_runtime/gpu/gpu_process_state.cc:222] Using CUDA malloc Async allocator for GPU: 0\n", |
138 | | - "2023-04-17 10:53:48.671836: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1637] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 24576 MB memory: -> device: 0, name: Quadro RTX 8000, pci bus id: 0000:08:00.0, compute capability: 7.5\n", |
| 130 | + "2023-04-19 01:35:03.696824: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 131 | + "2023-04-19 01:35:03.697038: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 132 | + "2023-04-19 01:35:03.697196: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 133 | + "2023-04-19 01:35:04.438845: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 134 | + "2023-04-19 01:35:04.439063: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 135 | + "2023-04-19 01:35:04.439222: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", |
| 136 | + "2023-04-19 01:35:04.439332: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:42] Overriding orig_value setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", |
| 137 | + "2023-04-19 01:35:04.439340: I tensorflow/core/common_runtime/gpu/gpu_process_state.cc:222] Using CUDA malloc Async allocator for GPU: 0\n", |
| 138 | + "2023-04-19 01:35:04.439400: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1637] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 24576 MB memory: -> device: 0, name: Quadro RTX 8000, pci bus id: 0000:08:00.0, compute capability: 7.5\n", |
139 | 139 | "/usr/local/lib/python3.8/dist-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", |
140 | 140 | " from .autonotebook import tqdm as notebook_tqdm\n" |
141 | 141 | ] |
|
859 | 859 | "text": [ |
860 | 860 | "/usr/local/lib/python3.8/dist-packages/keras/initializers/initializers_v2.py:120: UserWarning: The initializer TruncatedNormal is unseeded and being called multiple times, which will return identical values each time (even if the initializer is unseeded). Please update your code to provide a seed to the initializer, or avoid using the same initalizer instance more than once.\n", |
861 | 861 | " warnings.warn(\n", |
862 | | - "2023-04-17 10:53:56.422412: I tensorflow/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8700\n" |
| 862 | + "2023-04-19 01:35:13.112516: I tensorflow/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8700\n" |
863 | 863 | ] |
864 | 864 | }, |
865 | 865 | { |
|
893 | 893 | "name": "stderr", |
894 | 894 | "output_type": "stream", |
895 | 895 | "text": [ |
896 | | - "2023-04-17 10:54:07.156255: W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: model/xl_net_block/sequential_block_5/replace_masked_embeddings/RaggedWhere/Assert/AssertGuard/branch_executed/_95\n" |
| 896 | + "2023-04-19 01:35:23.514177: W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: model/xl_net_block/sequential_block_5/replace_masked_embeddings/RaggedWhere/Assert/AssertGuard/branch_executed/_95\n" |
897 | 897 | ] |
898 | 898 | }, |
899 | 899 | { |
900 | 900 | "name": "stdout", |
901 | 901 | "output_type": "stream", |
902 | 902 | "text": [ |
903 | | - "2720/2720 [==============================] - 79s 25ms/step - loss: 7.3254 - recall_at_10: 0.1956 - mrr_at_10: 0.0829 - ndcg_at_10: 0.1092 - map_at_10: 0.0829 - precision_at_10: 0.0196 - regularization_loss: 0.0000e+00 - loss_batch: 7.3244\n", |
| 903 | + "2720/2720 [==============================] - 77s 24ms/step - loss: 7.3177 - recall_at_10: 0.2005 - mrr_at_10: 0.0877 - ndcg_at_10: 0.1141 - map_at_10: 0.0877 - precision_at_10: 0.0201 - regularization_loss: 0.0000e+00 - loss_batch: 7.3157\n", |
904 | 904 | "Epoch 2/5\n", |
905 | | - "2720/2720 [==============================] - 67s 24ms/step - loss: 6.1170 - recall_at_10: 0.3607 - mrr_at_10: 0.1683 - ndcg_at_10: 0.2137 - map_at_10: 0.1683 - precision_at_10: 0.0361 - regularization_loss: 0.0000e+00 - loss_batch: 6.1153\n", |
| 905 | + "2720/2720 [==============================] - 67s 24ms/step - loss: 6.1038 - recall_at_10: 0.3626 - mrr_at_10: 0.1703 - ndcg_at_10: 0.2157 - map_at_10: 0.1703 - precision_at_10: 0.0363 - regularization_loss: 0.0000e+00 - loss_batch: 6.1022\n", |
906 | 906 | "Epoch 3/5\n", |
907 | | - "2720/2720 [==============================] - 68s 25ms/step - loss: 5.5579 - recall_at_10: 0.4363 - mrr_at_10: 0.2080 - ndcg_at_10: 0.2620 - map_at_10: 0.2080 - precision_at_10: 0.0436 - regularization_loss: 0.0000e+00 - loss_batch: 5.5554\n", |
| 907 | + "2720/2720 [==============================] - 63s 23ms/step - loss: 5.5767 - recall_at_10: 0.4321 - mrr_at_10: 0.2067 - ndcg_at_10: 0.2600 - map_at_10: 0.2067 - precision_at_10: 0.0432 - regularization_loss: 0.0000e+00 - loss_batch: 5.5751\n", |
908 | 908 | "Epoch 4/5\n", |
909 | | - "2720/2720 [==============================] - 69s 25ms/step - loss: 5.3061 - recall_at_10: 0.4666 - mrr_at_10: 0.2246 - ndcg_at_10: 0.2818 - map_at_10: 0.2246 - precision_at_10: 0.0467 - regularization_loss: 0.0000e+00 - loss_batch: 5.3038\n", |
| 909 | + "2720/2720 [==============================] - 64s 23ms/step - loss: 5.3249 - recall_at_10: 0.4631 - mrr_at_10: 0.2223 - ndcg_at_10: 0.2792 - map_at_10: 0.2223 - precision_at_10: 0.0463 - regularization_loss: 0.0000e+00 - loss_batch: 5.3230\n", |
910 | 910 | "Epoch 5/5\n", |
911 | | - "2720/2720 [==============================] - 70s 25ms/step - loss: 5.1669 - recall_at_10: 0.4821 - mrr_at_10: 0.2327 - ndcg_at_10: 0.2917 - map_at_10: 0.2327 - precision_at_10: 0.0482 - regularization_loss: 0.0000e+00 - loss_batch: 5.1647\n" |
| 911 | + "2720/2720 [==============================] - 68s 25ms/step - loss: 5.1779 - recall_at_10: 0.4796 - mrr_at_10: 0.2318 - ndcg_at_10: 0.2904 - map_at_10: 0.2318 - precision_at_10: 0.0480 - regularization_loss: 0.0000e+00 - loss_batch: 5.1764\n" |
912 | 912 | ] |
913 | 913 | }, |
914 | 914 | { |
915 | 915 | "data": { |
916 | 916 | "text/plain": [ |
917 | | - "<keras.callbacks.History at 0x7fb47895b0a0>" |
| 917 | + "<keras.callbacks.History at 0x7fa9a45e20a0>" |
918 | 918 | ] |
919 | 919 | }, |
920 | 920 | "execution_count": 15, |
|
961 | 961 | "name": "stderr", |
962 | 962 | "output_type": "stream", |
963 | 963 | "text": [ |
964 | | - "2023-04-17 10:59:53.461458: W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: model/xl_net_block/sequential_block_5/replace_masked_embeddings/RaggedWhere/Assert/AssertGuard/branch_executed/_71\n" |
| 964 | + "2023-04-19 01:40:55.868086: W tensorflow/core/grappler/optimizers/loop_optimizer.cc:907] Skipping loop optimization for Merge node with control input: model/xl_net_block/sequential_block_5/replace_masked_embeddings/RaggedWhere/Assert/AssertGuard/branch_executed/_71\n" |
965 | 965 | ] |
966 | 966 | }, |
967 | 967 | { |
968 | 968 | "name": "stdout", |
969 | 969 | "output_type": "stream", |
970 | 970 | "text": [ |
971 | | - "340/340 [==============================] - 11s 20ms/step - loss: 4.7125 - recall_at_10: 0.5556 - mrr_at_10: 0.3126 - ndcg_at_10: 0.3704 - map_at_10: 0.3126 - precision_at_10: 0.0556 - regularization_loss: 0.0000e+00 - loss_batch: 4.7121\n" |
| 971 | + "340/340 [==============================] - 10s 18ms/step - loss: 4.7317 - recall_at_10: 0.5562 - mrr_at_10: 0.3114 - ndcg_at_10: 0.3695 - map_at_10: 0.3114 - precision_at_10: 0.0556 - regularization_loss: 0.0000e+00 - loss_batch: 4.7313\n" |
972 | 972 | ] |
973 | 973 | }, |
974 | 974 | { |
975 | 975 | "data": { |
976 | 976 | "text/plain": [ |
977 | | - "{'loss': 4.712502956390381,\n", |
978 | | - " 'recall_at_10': 0.5555964112281799,\n", |
979 | | - " 'mrr_at_10': 0.3125925064086914,\n", |
980 | | - " 'ndcg_at_10': 0.37040114402770996,\n", |
981 | | - " 'map_at_10': 0.3125925064086914,\n", |
982 | | - " 'precision_at_10': 0.05555963143706322,\n", |
| 977 | + "{'loss': 4.731719017028809,\n", |
| 978 | + " 'recall_at_10': 0.556216835975647,\n", |
| 979 | + " 'mrr_at_10': 0.3114089369773865,\n", |
| 980 | + " 'ndcg_at_10': 0.36954960227012634,\n", |
| 981 | + " 'map_at_10': 0.3114089369773865,\n", |
| 982 | + " 'precision_at_10': 0.0556216724216938,\n", |
983 | 983 | " 'regularization_loss': 0.0,\n", |
984 | | - " 'loss_batch': 4.561119079589844}" |
| 984 | + " 'loss_batch': 4.579279899597168}" |
985 | 985 | ] |
986 | 986 | }, |
987 | 987 | "execution_count": 16, |
|
1091 | 1091 | "name": "stdout", |
1092 | 1092 | "output_type": "stream", |
1093 | 1093 | "text": [ |
1094 | | - "INFO:tensorflow:Assets written to: /tmp/tmpvdxq5w0m/model.savedmodel/assets\n" |
| 1094 | + "INFO:tensorflow:Assets written to: /tmp/tmpk2jcmm5x/model.savedmodel/assets\n" |
1095 | 1095 | ] |
1096 | 1096 | }, |
1097 | 1097 | { |
1098 | 1098 | "name": "stderr", |
1099 | 1099 | "output_type": "stream", |
1100 | 1100 | "text": [ |
1101 | | - "INFO:tensorflow:Assets written to: /tmp/tmpvdxq5w0m/model.savedmodel/assets\n", |
1102 | | - "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/utils/tf_utils.py:100: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
| 1101 | + "INFO:tensorflow:Assets written to: /tmp/tmpk2jcmm5x/model.savedmodel/assets\n", |
| 1102 | + "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/utils/tf_utils.py:101: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
1103 | 1103 | " config[key] = tf.keras.utils.serialize_keras_object(maybe_value)\n", |
1104 | 1104 | "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/core/combinators.py:288: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
1105 | 1105 | " config[i] = tf.keras.utils.serialize_keras_object(layer)\n", |
|
1286 | 1286 | "output_type": "stream", |
1287 | 1287 | "text": [ |
1288 | 1288 | "INFO:tensorflow:Assets written to: /workspace/ensemble/1_predicttensorflowtriton/1/model.savedmodel/assets\n", |
1289 | | - "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/utils/tf_utils.py:100: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
| 1289 | + "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/utils/tf_utils.py:101: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
1290 | 1290 | " config[key] = tf.keras.utils.serialize_keras_object(maybe_value)\n", |
1291 | 1291 | "/usr/local/lib/python3.8/dist-packages/merlin/models/tf/core/combinators.py:288: CustomMaskWarning: Custom mask layers require a config and must override get_config. When loading, the custom mask layer must be passed to the custom_objects argument.\n", |
1292 | 1292 | " config[i] = tf.keras.utils.serialize_keras_object(layer)\n", |
|
1397 | 1397 | { |
1398 | 1398 | "data": { |
1399 | 1399 | "text/plain": [ |
1400 | | - "array([[-3.497796 , -3.5179672 , 2.9564662 , ..., -0.45221543,\n", |
1401 | | - " -0.8475621 , -1.217337 ]], dtype=float32)" |
| 1400 | + "array([[-4.958611 , -4.977809 , 0.66012955, ..., -2.32572 ,\n", |
| 1401 | + " -0.6495375 , -2.4545593 ]], dtype=float32)" |
1402 | 1402 | ] |
1403 | 1403 | }, |
1404 | 1404 | "execution_count": 20, |
|
1428 | 1428 | } |
1429 | 1429 | ], |
1430 | 1430 | "source": [ |
1431 | | - "response.as_numpy('city_id_list/categorical_output').shape" |
| 1431 | + "predictions = response.as_numpy('city_id_list/categorical_output')\n", |
| 1432 | + "predictions.shape" |
1432 | 1433 | ] |
1433 | 1434 | }, |
1434 | 1435 | { |
|
1457 | 1458 | } |
1458 | 1459 | ], |
1459 | 1460 | "source": [ |
1460 | | - "wf.output_schema.select_by_name('city_id_list').to_pandas()['properties.embedding_sizes.cardinality'][0]" |
| 1461 | + "cardinality = wf.output_schema['city_id_list'].properties['embedding_sizes']['cardinality']\n", |
| 1462 | + "cardinality" |
1461 | 1463 | ] |
1462 | 1464 | }, |
1463 | 1465 | { |
|
0 commit comments