!docker run --rm --gpus 1 -v $MODEL_LOC:/data $RIVA_SM_CONTAINER –
riva-build intent_slot -f --domain_name=‘default’ /data/intent-slot.rmir:$KEY /data/$MODEL_NAME:$KEY
the folder has the model
/home/ubuntu/tao/results/intent_slot_classification/export_riva/models
ubuntu@ip-172-31-14-240:~/tao/results/intent_slot_classification/export_riva/models$ ls
riva-trt-riva_intent_default-nn-bert-base-uncased
riva-trt-riva_intent_”default”-nn-bert-base-uncased
riva_detokenize
riva_intent_default
riva_intent_”default”
riva_label_tokens
riva_label_tokens_default
riva_label_tokens_”default”
riva_tokenizer
Here are the failure logs
_InactiveRpcError Traceback (most recent call last)
in ()
1 run_intent_slot(grpc_server=“localhost:50051”,
----> 2 query=[“Please set an alarm for 6 am”, “Play some pop music”])
in run_intent_slot(grpc_server, query)
15 # custom Joint Intent and Slot model use the --domain_name
parameter in
16 # ServiceMaker’s riva-build intent_slot
command.
—> 17 resp = riva_nlp.AnalyzeIntent(req)
18
19 print(“Query:”, q)
/home/ubuntu/.local/lib/python3.6/site-packages/grpc/_channel.py in call(self, request, timeout, metadata, credentials, wait_for_ready, compression)
944 state, call, = self._blocking(request, timeout, metadata, credentials,
945 wait_for_ready, compression)
→ 946 return _end_unary_response_blocking(state, call, False, None)
947
948 def with_call(self,
/home/ubuntu/.local/lib/python3.6/site-packages/grpc/_channel.py in _end_unary_response_blocking(state, call, with_call, deadline)
847 return state.response
848 else:
→ 849 raise _InactiveRpcError(state)
850
851
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “Error: Model riva_intent_default is not a Riva API model, execution cannot be done”
debug_error_string = “{“created”:”@1630573683.812723422",“description”:“Error received from peer ipv6:[::1]:50051”,“file”:“src/core/lib/surface/call.cc”,“file_line”:1066,“grpc_message”:“Error: Model riva_intent_default is not a Riva API model, execution cannot be done”,“grpc_status”:14}"
The model created by the training notebook exists in export_riva folder.
ubuntu@ip-172-31-14-240:~/tao/results/intent_slot_classification/export_riva$ ls
export.log intent-slot-model.riva intent-slot.rmir models