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 |
text_encoder_profile_job = hub.submit_profile_job(
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
image_encoder_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 |
text_encoder_input_data = text_encoder_model.sample_inputs()
|
| 204 |
text_encoder_inference_job = hub.submit_inference_job(
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
text_encoder_inference_job.download_output_data()
|
| 210 |
image_encoder_input_data = image_encoder_model.sample_inputs()
|
| 211 |
image_encoder_inference_job = hub.submit_inference_job(
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
image_encoder_inference_job.download_output_data()
|
| 217 |
|
| 218 |
```
|
|
|
|
| 185 |
provided job URL to view a variety of on-device performance metrics.
|
| 186 |
```python
|
| 187 |
text_encoder_profile_job = hub.submit_profile_job(
|
| 188 |
+
model=text_encoder_target_model,
|
| 189 |
+
device=device,
|
| 190 |
+
)
|
| 191 |
image_encoder_profile_job = hub.submit_profile_job(
|
| 192 |
+
model=image_encoder_target_model,
|
| 193 |
+
device=device,
|
| 194 |
+
)
|
| 195 |
|
| 196 |
```
|
| 197 |
|
|
|
|
| 202 |
```python
|
| 203 |
text_encoder_input_data = text_encoder_model.sample_inputs()
|
| 204 |
text_encoder_inference_job = hub.submit_inference_job(
|
| 205 |
+
model=text_encoder_target_model,
|
| 206 |
+
device=device,
|
| 207 |
+
inputs=text_encoder_input_data,
|
| 208 |
+
)
|
| 209 |
text_encoder_inference_job.download_output_data()
|
| 210 |
image_encoder_input_data = image_encoder_model.sample_inputs()
|
| 211 |
image_encoder_inference_job = hub.submit_inference_job(
|
| 212 |
+
model=image_encoder_target_model,
|
| 213 |
+
device=device,
|
| 214 |
+
inputs=image_encoder_input_data,
|
| 215 |
+
)
|
| 216 |
image_encoder_inference_job.download_output_data()
|
| 217 |
|
| 218 |
```
|