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

ClarityClips
/
ClarityQwen2Summarizer

Summarization
Transformers
Safetensors
GGUF
English
French
qwen2
text-generation-inference
unsloth
trl
conversational
Model card Files Files and versions
xet
Community

Instructions to use ClarityClips/ClarityQwen2Summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ClarityClips/ClarityQwen2Summarizer 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="ClarityClips/ClarityQwen2Summarizer")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ClarityClips/ClarityQwen2Summarizer", dtype="auto")
  • llama-cpp-python

    How to use ClarityClips/ClarityQwen2Summarizer with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="ClarityClips/ClarityQwen2Summarizer",
    	filename="unsloth.F16.gguf",
    )
    
    llm.create_chat_completion(
    	messages = "\"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.\""
    )
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • llama.cpp

    How to use ClarityClips/ClarityQwen2Summarizer with llama.cpp:

    Install from brew
    brew install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf ClarityClips/ClarityQwen2Summarizer:F16
    # Run inference directly in the terminal:
    llama-cli -hf ClarityClips/ClarityQwen2Summarizer:F16
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf ClarityClips/ClarityQwen2Summarizer:F16
    # Run inference directly in the terminal:
    llama-cli -hf ClarityClips/ClarityQwen2Summarizer:F16
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf ClarityClips/ClarityQwen2Summarizer:F16
    # Run inference directly in the terminal:
    ./llama-cli -hf ClarityClips/ClarityQwen2Summarizer:F16
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf ClarityClips/ClarityQwen2Summarizer:F16
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf ClarityClips/ClarityQwen2Summarizer:F16
    Use Docker
    docker model run hf.co/ClarityClips/ClarityQwen2Summarizer:F16
  • LM Studio
  • Jan
  • Ollama

    How to use ClarityClips/ClarityQwen2Summarizer with Ollama:

    ollama run hf.co/ClarityClips/ClarityQwen2Summarizer:F16
  • Unsloth Studio new

    How to use ClarityClips/ClarityQwen2Summarizer 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 ClarityClips/ClarityQwen2Summarizer 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 ClarityClips/ClarityQwen2Summarizer to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for ClarityClips/ClarityQwen2Summarizer to start chatting
  • Docker Model Runner

    How to use ClarityClips/ClarityQwen2Summarizer with Docker Model Runner:

    docker model run hf.co/ClarityClips/ClarityQwen2Summarizer:F16
  • Lemonade

    How to use ClarityClips/ClarityQwen2Summarizer with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull ClarityClips/ClarityQwen2Summarizer:F16
    Run and chat with the model
    lemonade run user.ClarityQwen2Summarizer-F16
    List all available models
    lemonade list
ClarityQwen2Summarizer
4.17 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
Svngoku's picture
Svngoku
Update README.md
6972627 verified almost 2 years ago
  • .gitattributes
    1.63 kB
    (Trained with Unsloth) almost 2 years ago
  • README.md
    2.76 kB
    Update README.md almost 2 years ago
  • adapter_config.json
    732 Bytes
    Upload model trained with Unsloth almost 2 years ago
  • adapter_model.safetensors
    73.9 MB
    xet
    Upload model trained with Unsloth almost 2 years ago
  • added_tokens.json
    107 Bytes
    Upload model trained with Unsloth almost 2 years ago
  • config.json
    29 Bytes
    (Trained with Unsloth) almost 2 years ago
  • merges.txt
    1.67 MB
    Upload model trained with Unsloth almost 2 years ago
  • special_tokens_map.json
    256 Bytes
    Upload model trained with Unsloth almost 2 years ago
  • tokenizer.json
    7.03 MB
    Upload model trained with Unsloth almost 2 years ago
  • tokenizer_config.json
    1.51 kB
    Upload model trained with Unsloth almost 2 years ago
  • unsloth.F16.gguf
    3.09 GB
    xet
    (Trained with Unsloth) almost 2 years ago
  • unsloth.Q4_K_M.gguf
    986 MB
    xet
    (Trained with Unsloth) almost 2 years ago
  • vocab.json
    2.78 MB
    Upload model trained with Unsloth almost 2 years ago