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

Compactbot
/
char-gpt-1.2m

Transformers
Safetensors
English
charlm
tiny
tiny-lm
small-language-model
sub-1m
char-level
from-scratch
nanoGPT
TinyStories
Model card Files Files and versions
xet
Community
8

Instructions to use Compactbot/char-gpt-1.2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Compactbot/char-gpt-1.2m with Transformers:

    # Load model directly
    from transformers import CharGPT
    model = CharGPT.from_pretrained("Compactbot/char-gpt-1.2m", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
char-gpt-1.2m
4.88 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
Compactbot's picture
Compactbot
Fix model.safetensors size on card: 4,869,136 -> 4,869,112 B (matches the actual artifact) (#8)
d316a2c 5 days ago
  • .gitattributes
    1.52 kB
    initial commit 5 days ago
  • LICENSE
    87 Bytes
    Add license. (#3) 5 days ago
  • README.md
    2.9 kB
    Fix model.safetensors size on card: 4,869,136 -> 4,869,112 B (matches the actual artifact) (#8) 5 days ago
  • config.json
    240 Bytes
    Fix config: lm_head is NOT tied (checkpoint stores two distinct 65x128 tensors; model.py never ties). Set tie_word_embeddings=false to match the artifact. 5 days ago
  • model.py
    4.05 kB
    Add model code (CharGPT). (#1) 5 days ago
  • model.safetensors
    4.87 MB
    xet
    Fix corrupted weights: re-upload byte-exact clean checkpoint 5 days ago
  • sample.txt
    401 Bytes
    Add sample generation. (#4) 5 days ago
  • tokenizer_config.json
    713 Bytes
    Add char tokenizer config. (#2) 5 days ago