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

dnakov
/
nanochat-d20-mlx

Text Generation
MLX
Safetensors
English
nanochat
Model card Files Files and versions
xet
Community

Instructions to use dnakov/nanochat-d20-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use dnakov/nanochat-d20-mlx with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("dnakov/nanochat-d20-mlx")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use dnakov/nanochat-d20-mlx with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "dnakov/nanochat-d20-mlx" --prompt "Once upon a time"
nanochat-d20-mlx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
dnakov's picture
dnakov
Full optimizations: mx.fast.rope, SDPA GQA, nn.relu2
ccdb8db verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    146 Bytes
    Full optimizations: mx.fast.rope, SDPA GQA, nn.relu2 7 months ago
  • config.json
    396 Bytes
    Initial upload of nanochat-d20 MLX conversion 7 months ago
  • model.safetensors
    1.12 GB
    LFS
    Initial upload of nanochat-d20 MLX conversion 7 months ago
  • model.safetensors.index.json
    8.07 kB
    Initial upload of nanochat-d20 MLX conversion 7 months ago
  • special_tokens_map.json
    3 Bytes
    Initial upload of nanochat-d20 MLX conversion 7 months ago
  • tokenizer.json
    8.31 MB
    Initial upload of nanochat-d20 MLX conversion 7 months ago
  • tokenizer_config.json
    1.83 kB
    Initial upload of nanochat-d20 MLX conversion 7 months ago