Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

thepowerfuldeez
/
Qwen2-1.5B-Summarize

Summarization
Transformers
Safetensors
English
qwen2
text-generation
axolotl
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use thepowerfuldeez/Qwen2-1.5B-Summarize with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use thepowerfuldeez/Qwen2-1.5B-Summarize with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "summarization" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # pip install "transformers<5.0.0"
    from transformers import pipeline
    
    pipe = pipeline("summarization", model="thepowerfuldeez/Qwen2-1.5B-Summarize")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("thepowerfuldeez/Qwen2-1.5B-Summarize")
    model = AutoModelForCausalLM.from_pretrained("thepowerfuldeez/Qwen2-1.5B-Summarize", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
Qwen2-1.5B-Summarize
3.24 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
thepowerfuldeez's picture
thepowerfuldeez
Upload Qwen2ForCausalLM
3cec268 verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    2.12 kB
    Upload Qwen2ForCausalLM over 2 years ago
  • adapter_config.json
    726 Bytes
    Upload Qwen2ForCausalLM over 2 years ago
  • adapter_model.safetensors
    148 MB
    xet
    Upload Qwen2ForCausalLM over 2 years ago
  • config.json
    706 Bytes
    Upload Qwen2ForCausalLM over 2 years ago
  • generation_config.json
    242 Bytes
    Upload Qwen2ForCausalLM over 2 years ago
  • model.safetensors
    3.09 GB
    xet
    Upload Qwen2ForCausalLM over 2 years ago