load_gemma3_text_encoder

Load Gemma3 Text Model from safetensors

Description

Loads pre-trained Gemma3 weights from HuggingFace safetensors files.

Usage

load_gemma3_text_encoder(model_path, device = "cpu", dtype = "float16",
                         verbose = TRUE)

Arguments

  • model_path: Character. Path to directory containing model files.
  • device: Character. Device to load model to.
  • dtype: Character. Data type (“float32”, “float16”, “bfloat16”).
  • verbose: Logical. Print loading progress.

Value

Initialized gemma3_text_model with loaded weights.