Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

ModelSpace
/
GemmaX2-28-2B-Pretrain

Translation
Transformers
Safetensors
gemma2
text-generation
text-generation-inference
Model card Files Files and versions
xet
Community
3

Instructions to use ModelSpace/GemmaX2-28-2B-Pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ModelSpace/GemmaX2-28-2B-Pretrain with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "translation" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("translation", model="ModelSpace/GemmaX2-28-2B-Pretrain")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("ModelSpace/GemmaX2-28-2B-Pretrain")
    model = AutoModelForCausalLM.from_pretrained("ModelSpace/GemmaX2-28-2B-Pretrain")
  • Notebooks
  • Google Colab
  • Kaggle
GemmaX2-28-2B-Pretrain
6.43 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 21 commits
ModelSpace's picture
ModelSpace
Update README.md
c175f24 verified about 1 year ago
  • .gitattributes
    1.62 kB
    Upload main.png over 1 year ago
  • LICENSE
    103 Bytes
    Update LICENSE over 1 year ago
  • NOTICE
    247 Bytes
    Create NOTICE over 1 year ago
  • README.md
    2.35 kB
    Update README.md about 1 year ago
  • config.json
    891 Bytes
    Update config.json over 1 year ago
  • generation_config.json
    168 Bytes
    Upload 9 files over 1 year ago
  • main.png
    796 kB
    xet
    Upload main.png over 1 year ago
  • model-00001-of-00002.safetensors
    4.99 GB
    xet
    Upload 9 files over 1 year ago
  • model-00002-of-00002.safetensors
    1.42 GB
    xet
    Upload 9 files over 1 year ago
  • model.safetensors.index.json
    24.3 kB
    Upload 9 files over 1 year ago
  • special_tokens_map.json
    555 Bytes
    Upload 9 files over 1 year ago
  • tokenizer.json
    17.5 MB
    xet
    Upload 9 files over 1 year ago
  • tokenizer.model
    4.24 MB
    xet
    Upload 9 files over 1 year ago
  • tokenizer_config.json
    46.8 kB
    Upload 9 files over 1 year ago