dhan
03/03/2024, 2:02 PM'APIMethod' object has no attribute 'output' from run_in_spark when I ran bentoml.batch.run_in_spark(bento, df, spark). Stacktrace:
results = bentoml.batch.run_in_spark(bento, df, spark)
File "/usr/local/lib/python3.8/site-packages/bentoml/_internal/batch/spark.py", line 169, in run_in_spark
output_schema = api.output.spark_schema()
AttributeError: 'APIMethod' object has no attribute 'output'
I checked the APIMethod implementation and did not see an “output” or an “input” attribute. Is this expected? Anybody else ran into issues running bentos on Spark? Thanks!Chaoyu
03/05/2024, 3:27 AMdhan
03/05/2024, 4:02 PMCannot perform batch inference with a numpy output without a known shape; please provide a shape , but I don’t know how to define the shape since I don’t know the batch size… What should I do if I want to use Spark batch inference and expect the output to be an NxM numpy array?dhan
03/05/2024, 8:45 PMbentoml.batch.run_in_spark to run inferences, where input of each inference is one string and output of each inference is a list or an N-D array. I’ve tried different ways but always gets the error stated above or pyarrow.lib.ArrowInvalid: only handle 1-dimensional arrays .dhan
03/08/2024, 10:11 PM