StableDiffusionCppResource.AddNamedHuggingFaceModel
Method
type StableDiffusionCppResource interface { // ... omitted for brevity AddNamedHuggingFaceModel( name string, repository string, fileName string, options ...*AddNamedHuggingFaceModelOptions, ) StableDiffusionCppModelResource}Signature
method
AddNamedHuggingFaceModel builderAdds a named Hugging Face model that is downloaded before the container starts.
AddNamedHuggingFaceModel( name string, repository string, fileName string, options ...*AddNamedHuggingFaceModelOptions,) StableDiffusionCppModelResourceParameters
namestringThe child model resource name.repositorystringThe Hugging Face repository identifier.fileName stringThe model file path within the repository.options...*AddNamedHuggingFaceModelOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddNamedHuggingFaceModelOptions argument.
Revision*stringThe repository revision. Defaults to main.Returns
StableDiffusionCppModelResource A builder for the child model resource.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: