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 / model
165 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
Vivek's picture
Vivek
Original model
b274a78 almost 5 years ago
  • __init__.py
    3.53 kB
    Original model almost 5 years ago
  • configuration_gpt2.py
    9.31 kB
    Original model almost 5 years ago
  • convert_gpt2_original_tf_checkpoint_to_pytorch.py
    2.54 kB
    Original model almost 5 years ago
  • modeling_flax_gpt2.py
    26 kB
    Original model almost 5 years ago
  • modeling_gpt2.py
    57.1 kB
    Original model almost 5 years ago
  • modeling_tf_gpt2.py
    45.9 kB
    Original model almost 5 years ago
  • tokenization_gpt2.py
    12.4 kB
    Original model almost 5 years ago
  • tokenization_gpt2_fast.py
    8.13 kB
    Original model almost 5 years ago