Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -185,13 +185,13 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
185 |
provided job URL to view a variety of on-device performance metrics.
|
186 |
```python
|
187 |
encoder_profile_job = hub.submit_profile_job(
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
decoder_profile_job = hub.submit_profile_job(
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
|
196 |
```
|
197 |
|
@@ -202,17 +202,17 @@ on sample input data on the same cloud hosted device.
|
|
202 |
```python
|
203 |
encoder_input_data = encoder_model.sample_inputs()
|
204 |
encoder_inference_job = hub.submit_inference_job(
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
encoder_inference_job.download_output_data()
|
210 |
decoder_input_data = decoder_model.sample_inputs()
|
211 |
decoder_inference_job = hub.submit_inference_job(
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
decoder_inference_job.download_output_data()
|
217 |
|
218 |
```
|
|
|
185 |
provided job URL to view a variety of on-device performance metrics.
|
186 |
```python
|
187 |
encoder_profile_job = hub.submit_profile_job(
|
188 |
+
model=encoder_target_model,
|
189 |
+
device=device,
|
190 |
+
)
|
191 |
decoder_profile_job = hub.submit_profile_job(
|
192 |
+
model=decoder_target_model,
|
193 |
+
device=device,
|
194 |
+
)
|
195 |
|
196 |
```
|
197 |
|
|
|
202 |
```python
|
203 |
encoder_input_data = encoder_model.sample_inputs()
|
204 |
encoder_inference_job = hub.submit_inference_job(
|
205 |
+
model=encoder_target_model,
|
206 |
+
device=device,
|
207 |
+
inputs=encoder_input_data,
|
208 |
+
)
|
209 |
encoder_inference_job.download_output_data()
|
210 |
decoder_input_data = decoder_model.sample_inputs()
|
211 |
decoder_inference_job = hub.submit_inference_job(
|
212 |
+
model=decoder_target_model,
|
213 |
+
device=device,
|
214 |
+
inputs=decoder_input_data,
|
215 |
+
)
|
216 |
decoder_inference_job.download_output_data()
|
217 |
|
218 |
```
|