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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

MohammadOthman
/
megatron-gpt2-classification

Text Classification
Transformers
Safetensors
English
gpt2
distributed-training
megatron
accelerate
Model card Files Files and versions
xet
Community

Instructions to use MohammadOthman/megatron-gpt2-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MohammadOthman/megatron-gpt2-classification with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="MohammadOthman/megatron-gpt2-classification")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("MohammadOthman/megatron-gpt2-classification")
    model = AutoModelForSequenceClassification.from_pretrained("MohammadOthman/megatron-gpt2-classification", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
megatron-gpt2-classification
1.49 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
MohammadOthman's picture
MohammadOthman
Create README.md
42e4847 verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    555 Bytes
    Create README.md over 2 years ago
  • config.json
    995 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub over 2 years ago
  • model.safetensors
    498 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • optimizer.pt
    996 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • rng_state_0.pth
    15 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • rng_state_1.pth
    15 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • rng_state_2.pth
    15 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • rng_state_3.pth
    15 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • scheduler.pt
    1.06 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • special_tokens_map.json
    470 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • tokenizer_config.json
    525 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • trainer_state.json
    830 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • training_args.bin
    4.92 kB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • vocab.json
    999 kB
    Upload folder using huggingface_hub over 2 years ago