Instructions to use shah-shazid-askary/amd-finance-llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shah-shazid-askary/amd-finance-llm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shah-shazid-askary/amd-finance-llm")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shah-shazid-askary/amd-finance-llm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shah-shazid-askary/amd-finance-llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shah-shazid-askary/amd-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": "shah-shazid-askary/amd-finance-llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/shah-shazid-askary/amd-finance-llm
- SGLang
How to use shah-shazid-askary/amd-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 "shah-shazid-askary/amd-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": "shah-shazid-askary/amd-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 "shah-shazid-askary/amd-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": "shah-shazid-askary/amd-finance-llm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use shah-shazid-askary/amd-finance-llm with Docker Model Runner:
docker model run hf.co/shah-shazid-askary/amd-finance-llm
Update ML Intern artifact metadata
Browse files
README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# AMD Finance LLM — Domain-Specialized on ROCm MI300X
|
| 2 |
|
| 3 |
A domain-specific LLM fine-tuned for finance on AMD Instinct MI300X via ROCm, Optimum-AMD, and vLLM.
|
|
@@ -15,3 +19,22 @@ A domain-specific LLM fine-tuned for finance on AMD Instinct MI300X via ROCm, Op
|
|
| 15 |
|
| 16 |
## Citation
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- ml-intern
|
| 4 |
+
---
|
| 5 |
# AMD Finance LLM — Domain-Specialized on ROCm MI300X
|
| 6 |
|
| 7 |
A domain-specific LLM fine-tuned for finance on AMD Instinct MI300X via ROCm, Optimum-AMD, and vLLM.
|
|
|
|
| 19 |
|
| 20 |
## Citation
|
| 21 |
|
| 22 |
+
<!-- ml-intern-provenance -->
|
| 23 |
+
## Generated by ML Intern
|
| 24 |
+
|
| 25 |
+
This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
|
| 26 |
+
|
| 27 |
+
- Try ML Intern: https://smolagents-ml-intern.hf.space
|
| 28 |
+
- Source code: https://github.com/huggingface/ml-intern
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 34 |
+
|
| 35 |
+
model_id = 'shah-shazid-askary/amd-finance-llm'
|
| 36 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 37 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.
|