Summarization
Transformers
Safetensors
GGUF
English
French
qwen2
text-generation-inference
unsloth
trl
conversational
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
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!