Instructions to use AdaptLLM/finance-LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdaptLLM/finance-LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdaptLLM/finance-LLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdaptLLM/finance-LLM") model = AutoModelForCausalLM.from_pretrained("AdaptLLM/finance-LLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdaptLLM/finance-LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdaptLLM/finance-LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdaptLLM/finance-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdaptLLM/finance-LLM
- SGLang
How to use AdaptLLM/finance-LLM 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 "AdaptLLM/finance-LLM" \ --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": "AdaptLLM/finance-LLM", "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 "AdaptLLM/finance-LLM" \ --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": "AdaptLLM/finance-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdaptLLM/finance-LLM with Docker Model Runner:
docker model run hf.co/AdaptLLM/finance-LLM
Commit History
-
Update README.md
Verified signature59a16a0
-
Update README.md
Verified signature45eba6a
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (8b3512a1cf405a0a227be77285100cfc6fdd267d) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>7765c20
-
Update README.md
Verified signature21555b6 -
Update README.md
Verified signature00bcd9e -
Update README.md
Verified signature0eafeec
-
Update README.md
Verified signature0967c1a
-
Update README.md
Verified signatured9f758c
-
Update README.md
Verified signature019ac70
-
Update README.md
Verified signature824aa1b
-
Update README.md
Verified signature49a297c
-
Update README.md
Verified signatured00d8da
-
Update README.md
Verified signature991fc44
-
Update README.md
Verified signature93f5ff9
-
Update README.md
f462bbc -
Update README.md
867f478
-
Update README.md
9052dcc
-
Update README.md
e39ecd7 -
Update README.md
8c74e45
-
Update README.md
6333a38
-
Update README.md
172e21a -
Update README.md
c36407b -
Update README.md
8294af3
-
Update README.md
4106840
-
Update README.md
9a9528c -
Update README.md
f9c27c3
-
Update README.md
a92684f
-
Update README.md
4fabd35
-
Update README.md
5b33123 -
Add dataset metadata (#1)
- Add dataset metadata (ad3b7ec93d5e6dc905c91a311be0dc02119153be) Co-authored-by: Nicholas Broad <nbroad@users.noreply.huggingface.co>60ed476
-
merge
f1263a7 -
readme
b509893 -
Update README.md
1a4d934 -
Create README.md
82a2e5d
-
AdaptLLM-fin-v0
4e7dc56 -
initial commit
05e98aa