Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -140,9 +140,9 @@ provisioned in the cloud. Once the job is submitted, you can navigate to a
|
|
140 |
provided job URL to view a variety of on-device performance metrics.
|
141 |
```python
|
142 |
profile_job = hub.submit_profile_job(
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
|
147 |
```
|
148 |
|
@@ -153,10 +153,10 @@ on sample input data on the same cloud hosted device.
|
|
153 |
```python
|
154 |
input_data = torch_model.sample_inputs()
|
155 |
inference_job = hub.submit_inference_job(
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
on_device_output = inference_job.download_output_data()
|
161 |
|
162 |
```
|
|
|
140 |
provided job URL to view a variety of on-device performance metrics.
|
141 |
```python
|
142 |
profile_job = hub.submit_profile_job(
|
143 |
+
model=target_model,
|
144 |
+
device=device,
|
145 |
+
)
|
146 |
|
147 |
```
|
148 |
|
|
|
153 |
```python
|
154 |
input_data = torch_model.sample_inputs()
|
155 |
inference_job = hub.submit_inference_job(
|
156 |
+
model=target_model,
|
157 |
+
device=device,
|
158 |
+
inputs=input_data,
|
159 |
+
)
|
160 |
on_device_output = inference_job.download_output_data()
|
161 |
|
162 |
```
|