Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

flax-community
/
gpt2-Cosmos

Transformers
JAX
TensorBoard
gpt2
Model card Files Files and versions
xet
Metrics Training metrics Community

Instructions to use flax-community/gpt2-Cosmos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use flax-community/gpt2-Cosmos with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultipleChoice
    
    tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt2-Cosmos")
    model = AutoModelForMultipleChoice.from_pretrained("flax-community/gpt2-Cosmos")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-Cosmos / src
44.5 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
Vivek's picture
Vivek
Saving weights of epoch 1 at step 92
fa13e7b almost 5 years ago
  • __pycache__
    Saving weights of epoch 1 at step 92 almost 5 years ago
  • gpt3.py
    10.1 kB
    train py files almost 5 years ago
  • model_file.py
    10.4 kB
    train py files almost 5 years ago
  • prediction.py
    1.83 kB
    Saving weights of epoch 1 at step 92 almost 5 years ago
  • requirements.txt
    36 Bytes
    train py files almost 5 years ago
  • test.py
    2.8 kB
    final draft almost 5 years ago
  • train.py
    10.4 kB
    Saving weights of epoch 1 at step 92 almost 5 years ago