Text Generation
Transformers
AI
Machine Learning
News Analysis
GPT-2
Natural Language Processing (NLP)
Instructions to use chandrujobs/AI_Machine_Learning_News_Analyzer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chandrujobs/AI_Machine_Learning_News_Analyzer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chandrujobs/AI_Machine_Learning_News_Analyzer")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chandrujobs/AI_Machine_Learning_News_Analyzer", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use chandrujobs/AI_Machine_Learning_News_Analyzer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chandrujobs/AI_Machine_Learning_News_Analyzer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chandrujobs/AI_Machine_Learning_News_Analyzer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chandrujobs/AI_Machine_Learning_News_Analyzer
- SGLang
How to use chandrujobs/AI_Machine_Learning_News_Analyzer with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "chandrujobs/AI_Machine_Learning_News_Analyzer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chandrujobs/AI_Machine_Learning_News_Analyzer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "chandrujobs/AI_Machine_Learning_News_Analyzer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chandrujobs/AI_Machine_Learning_News_Analyzer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chandrujobs/AI_Machine_Learning_News_Analyzer with Docker Model Runner:
docker model run hf.co/chandrujobs/AI_Machine_Learning_News_Analyzer
AI & Machine Learning News Analyzer
Overview
The AI & Machine Learning News Analyzer is a weekend project designed to leverage a pre-trained GPT-2 model for summarizing and analyzing the latest news articles in the field of artificial intelligence (AI) and machine learning (ML). The application fetches real-time news articles and provides concise analyses, highlighting significant developments in the AI and ML landscape.
License
This project is licensed under the MIT License.
Datasets
- NewsAPI: Utilized for fetching news articles related to AI and ML.
Languages
- Python
Metrics
- No specific metrics applied, but the system analyzes news articles and generates insights.
Base Model
- GPT-2 (
gpt2)
New Version
- Version 1.0 (Initial release)
Pipeline Tag
- text-generation
Library
- Hugging Face Transformers
- Gradio
Tags
- AI
- Machine Learning
- News Analysis
- GPT-2
- Natural Language Processing (NLP)
Usage
- Clone the repository.
- Install the required packages:
pip install -r requirements.txt
Model tree for chandrujobs/AI_Machine_Learning_News_Analyzer
Base model
openai-community/gpt2