Instructions to use jsonfin17/financial_summary2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jsonfin17/financial_summary2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jsonfin17/financial_summary2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jsonfin17/financial_summary2") model = AutoModelForCausalLM.from_pretrained("jsonfin17/financial_summary2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jsonfin17/financial_summary2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jsonfin17/financial_summary2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jsonfin17/financial_summary2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jsonfin17/financial_summary2
- SGLang
How to use jsonfin17/financial_summary2 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 "jsonfin17/financial_summary2" \ --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": "jsonfin17/financial_summary2", "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 "jsonfin17/financial_summary2" \ --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": "jsonfin17/financial_summary2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jsonfin17/financial_summary2 with Docker Model Runner:
docker model run hf.co/jsonfin17/financial_summary2
Ctrl+K
- Aug10_05-01-37_jason
- Aug10_05-09-49_jason
- Aug10_05-18-18_jason
- Aug10_05-21-30_jason
- Aug10_05-27-20_jason
- Aug17_00-43-18_jason
- Aug17_00-45-19_jason
- Aug17_01-16-31_jason
- Aug17_01-23-27_jason
- Aug17_01-27-39_jason
- Aug17_01-33-43_jason
- Aug17_01-38-13_jason
- Aug17_01-50-40_jason
- Aug17_01-56-08_jason
- Aug17_02-04-47_jason
- Aug17_02-42-01_jason
- Aug17_02-48-09_jason
- Aug17_02-59-35_jason
- Aug17_03-10-30_jason
- Aug17_03-17-37_jason
- Aug17_03-20-21_jason
- Aug17_03-31-09_jason
- Aug17_03-34-47_jason
- Aug17_03-40-33_jason