Text Generation
Transformers
PyTorch
Safetensors
English
llama
finance
Eval Results (legacy)
text-generation-inference
Instructions to use AdaptLLM/finance-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdaptLLM/finance-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdaptLLM/finance-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AdaptLLM/finance-chat") model = AutoModelForCausalLM.from_pretrained("AdaptLLM/finance-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AdaptLLM/finance-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdaptLLM/finance-chat" # 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-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AdaptLLM/finance-chat
- SGLang
How to use AdaptLLM/finance-chat 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-chat" \ --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-chat", "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-chat" \ --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-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AdaptLLM/finance-chat with Docker Model Runner:
docker model run hf.co/AdaptLLM/finance-chat
Commit History
-
Update README.md
Verified signatured08fea1
-
Update README.md
Verified signaturef2c4acb
-
Update README.md
Verified signaturec5afd62 -
Update README.md
Verified signaturec84edeb
-
Update README.md (#4)
Verified signature- Update README.md (21025545f5998656f642293330e7e9ab4b244781) Co-authored-by: instruction-pretrain <instruction-pretrain@users.noreply.huggingface.co>8e46ef8
-
Update README.md
Verified signatureae0f8be
-
Update README.md
Verified signaturea35b882
-
Update README.md
Verified signature4e9962b
-
Adding `safetensors` variant of this model (#3)
Verified signature- Adding `safetensors` variant of this model (2da08ed2a600402315684d00d188b6a88247b6ed) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5de4684
-
Update README.md
Verified signature6a89d09 -
Update README.md
Verified signature9d23085
-
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (f90ca35abe97dc9015e51fea5dbb428379fd7884) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>71c083f
-
Update README.md
Verified signature207f34f
-
Update README.md
Verified signaturef1b62b2
-
Update README.md
Verified signature6403a24
-
Update README.md
Verified signature76070dc
-
Update README.md
c8aa746 -
Upload tokenizer.json
071cda2
-
Update README.md
78e0a55
-
Update README.md
42d449d
-
Update README.md
d2435cd
-
Update README.md
04bf3b3 -
Update README.md
333eb8c
-
Update README.md
f06e2d9
-
Update README.md
89b9d9f -
Update README.md
169e9e2 -
readme
cae70fd
-
Merge remote-tracking branch 'origin/main'
4dd0b37 -
debug
d6fd77c -
Update README.md
49976eb -
init finance-chat
c9c7d95 -
init finance-chat
ca78a94 -
initial commit
ecef98d