MCPcopy Create free account
hub / github.com/evilsocket/cake / clip_file

Method clip_file

cake-core/src/lib.rs:481–491  ·  view source on GitHub ↗
(&self, use_f16: bool)

Source from the content-addressed store, hash-verified

479 }
480
481 fn clip_file(&self, use_f16: bool) -> &'static str {
482 match self {
483 Self::V1_5 | Self::V2_1 | Self::Xl | Self::Turbo => {
484 if use_f16 {
485 "text_encoder/model.fp16.safetensors"
486 } else {
487 "text_encoder/model.safetensors"
488 }
489 }
490 }
491 }
492
493 fn clip2_file(&self, use_f16: bool) -> &'static str {
494 match self {

Callers 1

getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected