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

behnamebrahimi
/
mlx-quantized

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

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

  • Libraries
  • MLX

    How to use behnamebrahimi/mlx-quantized 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("behnamebrahimi/mlx-quantized")
    
    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 behnamebrahimi/mlx-quantized with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "behnamebrahimi/mlx-quantized" --prompt "Once upon a time"
mlx-quantized
4.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
behnamebrahimi's picture
behnamebrahimi
Upload folder using huggingface_hub
45e8624 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    622 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • config.json
    2.2 kB
    Upload folder using huggingface_hub about 2 years ago
  • model.safetensors
    4.26 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model.safetensors.index.json
    52.3 kB
    Upload folder using huggingface_hub about 2 years ago
  • special_tokens_map.json
    414 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer.json
    1.8 MB
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer_config.json
    967 Bytes
    Upload folder using huggingface_hub about 2 years ago