Using Gemma 2B Instruct on Alibaba Cloud PAI-EAS

Implementation guide · Gemma · Google DeepMind

ServerlessOpen Weights

Alibaba Cloud PAI-EAS exposes Gemma 2B Instruct through model ID gemma-2b-it. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-04-19. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Alibaba Cloud PAI-EAS and generate an API key.
  2. 2
    Use the Alibaba Cloud PAI-EAS SDK or REST API to call gemma-2b-it — see the documentation for request format.

Code Examples

See Alibaba Cloud PAI-EAS documentation for integration details.

Pricing on Alibaba Cloud PAI-EAS

Capabilities

Structured Outputs

About Gemma 2B Instruct

Gemma 2B Instruct is a large language model developed by Google, designed to balance performance and accessibility with its 2 billion parameters. Derived from the Gemini family, it excels in tasks such as text generation, code interpretation, and mathematical problem-solving. Built on a transformer decoder architecture, it features multi-query attention, RoPE, GeGLU activations, and RMSNorm. Trained on approximately 6 trillion tokens, including web documents, code, and mathematical content, it uses SFT and RLHF for instruction-tuning. Notable for its lightweight design permitting deployment on consumer-grade hardware, it's open-source and optimized for dialogue applications.

Model Specs

Released2024-02-21
Parameters2B
Context2k
ArchitectureDecoder Only
Knowledge cutoff2023-04

Provider

Alibaba Cloud PAI-EAS

Alibaba Cloud

Hangzhou, Zhejiang, China