You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beim Pushen von Modellen werden ähnliche Parameter unterstützt:
@@ -203,7 +203,6 @@ class PyTorchModelHubMixin(ModelHubMixin):
203
203
cache_dir: str,
204
204
force_download: bool,
205
205
proxies: Optional[dict],
206
-
resume_download: bool,
207
206
local_files_only: bool,
208
207
token: Union[str, bool, None],
209
208
map_location: str="cpu", # zusätzliches Argument
@@ -221,8 +220,6 @@ class PyTorchModelHubMixin(ModelHubMixin):
221
220
revision=revision,
222
221
cache_dir=cache_dir,
223
222
force_download=force_download,
224
-
proxies=proxies,
225
-
resume_download=resume_download,
226
223
token=token,
227
224
local_files_only=local_files_only,
228
225
)
@@ -242,9 +239,9 @@ Und das war's! Ihre Bibliothek ermöglicht es Benutzern nun, Dateien vom und zum
242
239
Lassen Sie uns die beiden Ansätze, die wir gesehen haben, schnell mit ihren Vor- und Nachteilen zusammenfassen. Die untenstehende Tabelle ist nur indikativ. Ihr Framework könnte einige Besonderheiten haben, die Sie berücksichtigen müssen. Dieser Leitfaden soll nur Richtlinien und Ideen geben, wie Sie die Integration handhaben können. Kontaktieren Sie uns in jedem Fall, wenn Sie Fragen haben!
243
240
244
241
<!-- Generated using https://www.tablesgenerator.com/markdown_tables -->
| Flexibilität |Sehr flexibel.<br>Sie haben die volle Kontrolle über die Implementierung. |Weniger flexibel.<br>Ihr Framework muss eine Modellklasse haben. |
249
-
| Wartung | Mehr Wartung, um Unterstützung für Konfiguration und neue Funktionen hinzuzufügen. Könnte auch das Beheben von Benutzerproblemen erfordern. | Weniger Wartung, da die meisten Interaktionen mit dem Hub in `huggingface_hub` implementiert sind. |
250
-
| Dokumentation/Typ-Annotation|Manuell zu schreiben. |Teilweise durch `huggingface_hub` behandelt. |
|Flexibilität |Sehr flexibel.<br>Sie haben die volle Kontrolle über die Implementierung. |Weniger flexibel.<br>Ihr Framework muss eine Modellklasse haben.|
246
+
|Wartung| Mehr Wartung, um Unterstützung für Konfiguration und neue Funktionen hinzuzufügen. Könnte auch das Beheben von Benutzerproblemen erfordern. | Weniger Wartung, da die meisten Interaktionen mit dem Hub in `huggingface_hub` implementiert sind. |
247
+
| Dokumentation/Typ-Annotation|Manuell zu schreiben. |Teilweise durch `huggingface_hub` behandelt.|
| User experience |`model = load_from_hub(...)`<br>`push_to_hub(model, ...)`|`model = MyModel.from_pretrained(...)`<br>`model.push_to_hub(...)`|
434
-
| Flexibility |Very flexible.<br>You fully control the implementation. |Less flexible.<br>Your framework must have a model class. |
435
-
| Maintenance | More maintenance to add support for configuration, and new features. Might also require fixing issues reported by users. | Less maintenance as most of the interactions with the Hub are implemented in `huggingface_hub`. |
436
-
| Documentation / Type annotation | To be written manually. |Partially handled by `huggingface_hub`. |
437
-
| Download counter |To be handled manually. |Enabled by default if class has a `config` attribute. |
438
-
| Model card |To be handled manually |Generated by default with library_name, tags, etc. |
|Flexibility |Very flexible.<br>You fully control the implementation. |Less flexible.<br>Your framework must have a model class.|
431
+
|Maintenance| More maintenance to add support for configuration, and new features. Might also require fixing issues reported by users. | Less maintenance as most of the interactions with the Hub are implemented in `huggingface_hub`. |
432
+
| Documentation / Type annotation |To be written manually. |Partially handled by `huggingface_hub`.|
433
+
|Download counter |To be handled manually. |Enabled by default if class has a `config` attribute.|
434
+
|Model card |To be handled manually |Generated by default with library_name, tags, etc.|
0 commit comments