Instructions to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF", filename="unsloth.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
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 SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
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 SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
Use Docker
docker model run hf.co/SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with Ollama:
ollama run hf.co/SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
- Unsloth Studio new
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF 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 SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF 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 SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF to start chatting
- Docker Model Runner
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with Docker Model Runner:
docker model run hf.co/SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
- Lemonade
How to use SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Mistral_7B_Summarizer_SFT_GGUF-Q4_K_M
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)Mistral 7B Text Summarizer
Overview
Model Name: Mistral 7B Text Summarizer
Model ID: SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF
Framework: Hugging Face Transformers
The Mistral 7B Text Summarizer is a powerful model designed for text summarization tasks. It leverages the Mistral 7B architecture and incorporates Low-Rank Adaptation (LoRA) techniques to enhance fine-tuning efficiency and optimize performance.
Task
Task: Text Summarization
Domain: General-purpose, capable of summarizing content across diverse domains.
Key Features
- Architecture: Utilizes the advanced Mistral 7B transformer-based architecture.
- Fine-tuning: Implements Parameter-Efficient Fine-Tuning (PEFT) with LoRA adapters to boost performance and reduce computational costs.
- Inference Optimization: Designed for fast and efficient inference using gradient checkpointing and optimized data management.
- Quantization: Supports 4-bit quantization, significantly reducing memory usage and computation time while maintaining accuracy.
- Dataset: Fine-tuned on the SURESHBEEKHANI text-summarizer dataset for robust performance.
Performance Metrics
- Maximum Sequence Length: Supports up to 2048 tokens.
- Precision: Configurable to
float16orfloat32for hardware optimization. - Training Method: Fine-tuned using Supervised Fine-Tuning (SFT) through the Hugging Face TRL library.
- Efficiency: Optimized for reduced memory footprint, enabling larger batch sizes and handling longer sequences effectively.
Use Cases
Applications
Designed for tasks requiring concise summaries of lengthy texts, documents, or articles.
Scenarios
Ideal for domains like content generation, report summarization, and information distillation.
Deployment
Efficient for use in production systems requiring scalable and fast text summarization.
Limitations
- Context Length: While optimized for extended sequences, extremely long documents may require additional memory and computational power.
- Specialized Domains: Performance may be inconsistent in niche areas that are underrepresented in the training dataset.
Ethical Considerations
- Bias Mitigation: Steps have been taken to reduce biases inherent in the training data and to ensure fairness in generated summaries.
- Privacy: The model is designed to respect user privacy by adhering to best practices in handling input text data.
- Transparency: Comprehensive documentation and model cards are provided to foster trust and understanding in AI-driven summarization.
Contributors
- Fine-Tuning: Suresh Beekhani
- Dataset: Developed and fine-tuned using the SURESHBEEKHANI text-summarizer dataset.
License
License: Open-source under Hugging Face and unsloth licenses, allowing free use and modification.
Notebook
Access the implementation notebook for this modelhere. This notebook provides detailed steps for fine-tuning and deploying the model.
- Downloads last month
- 148
4-bit
5-bit
8-bit
Model tree for SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF
Base model
unsloth/mistral-7b-v0.3
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SURESHBEEKHANI/Mistral_7B_Summarizer_SFT_GGUF", filename="", )