google-deepmind/gemma-2-2b 🔢📝 → 📝

▶️ 34.1K runs 📅 Jul 2024 ⚙️ Cog 0.9.13 🔗 GitHub 📄 Paper ⚖️ License
code-generation summarization text-generation

About

Gemma2 2b by Google

Example Output

Prompt:

"The theory of special relativity states "

Output

(a) that the speed of light is constant in all inertial frames. (b) that mass increases with the strength of a gravitational field. (c) that time passes more slowly for objects moving near the speed of light. (d) that the speed of light is constant for all observers relative to an electromagnetic

Performance Metrics

4.12s Prediction Time
4.13s Total Time
All Input Parameters
{
  "top_k": 50,
  "top_p": 0.9,
  "prompt": "The theory of special relativity states ",
  "temperature": 0.6,
  "max_new_tokens": 64,
  "repetition_penalty": 1.2
}
Input Parameters
top_k Type: integerDefault: 50Range: 1 - 1000
When decoding text, samples from the top k most likely tokens; lower to ignore less likely tokens
top_p Type: numberDefault: 0.9Range: 0.05 - 1
When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
prompt Type: stringDefault: Write me a poem about Machine Learning.
Prompt to send to the model.
temperature Type: numberDefault: 0.6Range: 0.1 - 4
Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
max_new_tokens Type: integerDefault: 1024Range: 1 - 4096
Maximum number of tokens to generate. A word is generally 2-3 tokens
repetition_penalty Type: numberDefault: 1.2Range: 0 - ∞
Repetition penalty parameter.
Output Schema

Output

Type: arrayItems Type: string

Version Details
Version ID
996e491a2cc5abe01bfe9371a791c8a0242172474e4ac5931671379d89961dec
Version Created
August 1, 2024
Run on Replicate →