The embedding layer’s parameter count is determined by a simple formula:

Embedding parameters = vocabulary_size × embedding_dimension

For Gemma 3 270M:

  • Vocabulary size: ~256,000 tokens (Gemma uses a very large multilingual vocabulary)
  • Embedding dimension: 640

LMCache

The first open-source Knowledge Delivery Network (KDN) that accelerates LLM applications up to 8x faster, at 8x lower cost.