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

lainlives
/
Qwen2.5-Coder-7B-bnb-4bit

Feature Extraction
Transformers
Safetensors
English
qwen2
bnb-my-repo
unsloth
code
qwen
qwen-coder
codeqwen
text-embeddings-inference
4-bit precision
bitsandbytes
Model card Files Files and versions
xet
Community

Instructions to use lainlives/Qwen2.5-Coder-7B-bnb-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use lainlives/Qwen2.5-Coder-7B-bnb-4bit with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="lainlives/Qwen2.5-Coder-7B-bnb-4bit")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("lainlives/Qwen2.5-Coder-7B-bnb-4bit")
    model = AutoModel.from_pretrained("lainlives/Qwen2.5-Coder-7B-bnb-4bit")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Unsloth Studio new

    How to use lainlives/Qwen2.5-Coder-7B-bnb-4bit with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for lainlives/Qwen2.5-Coder-7B-bnb-4bit to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for lainlives/Qwen2.5-Coder-7B-bnb-4bit to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for lainlives/Qwen2.5-Coder-7B-bnb-4bit to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="lainlives/Qwen2.5-Coder-7B-bnb-4bit",
        max_seq_length=2048,
    )
Qwen2.5-Coder-7B-bnb-4bit
4.47 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
lainlives's picture
lainlives
Upload folder using huggingface_hub
a876550 verified 2 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 2 months ago
  • README.md
    8.39 kB
    Upload folder using huggingface_hub 2 months ago
  • config.json
    1.88 kB
    Upload folder using huggingface_hub 2 months ago
  • model.safetensors
    4.46 GB
    xet
    Upload folder using huggingface_hub 2 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 2 months ago
  • tokenizer_config.json
    694 Bytes
    Upload folder using huggingface_hub 2 months ago