Add ONNX and PyTorch pipelines for Gemma3 embedding model
Alex Sadleir
d5fb6c3
- Implemented `gemma3_mean_pooling_basic.py` for basic mean pooling using the Gemma3 model.
- Created `onnx_gemma3_pipeline.py` to define an ONNX pipeline for the Gemma3 embedding model, including tokenization, encoding, and cosine similarity calculations.
- Developed `pytorch_gemma3_pipeline.py` to provide a PyTorch-based implementation of the Gemma3 embedding model, featuring batch processing and mean pooling.
- Added cosine similarity demonstration in both ONNX and PyTorch pipelines for comparing embeddings of sample words.