Instructions to use MayaPH/FinOPT-Lincoln with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MayaPH/FinOPT-Lincoln with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MayaPH/FinOPT-Lincoln")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MayaPH/FinOPT-Lincoln") model = AutoModelForCausalLM.from_pretrained("MayaPH/FinOPT-Lincoln") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use MayaPH/FinOPT-Lincoln with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MayaPH/FinOPT-Lincoln" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MayaPH/FinOPT-Lincoln", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MayaPH/FinOPT-Lincoln
- SGLang
How to use MayaPH/FinOPT-Lincoln 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 "MayaPH/FinOPT-Lincoln" \ --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": "MayaPH/FinOPT-Lincoln", "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 "MayaPH/FinOPT-Lincoln" \ --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": "MayaPH/FinOPT-Lincoln", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MayaPH/FinOPT-Lincoln with Docker Model Runner:
docker model run hf.co/MayaPH/FinOPT-Lincoln
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -72,4 +72,17 @@ For additional information or inquiries about FinOPT-Lincoln, please contact the
|
|
| 72 |
FinOPT-Lincoln is an AI language model trained by Maya Philippines. It is provided "as is" without warranty of any kind, express or implied. The model developers and Maya Philippines shall not be liable for any direct or indirect damages arising from the use of this model.
|
| 73 |
|
| 74 |
## Acknowledgments
|
| 75 |
-
The development of FinOPT-Lincoln was made possible by Maya Philippines and the curation and creation of the financial question-answering dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
FinOPT-Lincoln is an AI language model trained by Maya Philippines. It is provided "as is" without warranty of any kind, express or implied. The model developers and Maya Philippines shall not be liable for any direct or indirect damages arising from the use of this model.
|
| 73 |
|
| 74 |
## Acknowledgments
|
| 75 |
+
The development of FinOPT-Lincoln was made possible by Maya Philippines and the curation and creation of the financial question-answering dataset.
|
| 76 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 77 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_MayaPH__FinOPT-Lincoln)
|
| 78 |
+
|
| 79 |
+
| Metric | Value |
|
| 80 |
+
|-----------------------|---------------------------|
|
| 81 |
+
| Avg. | 25.2 |
|
| 82 |
+
| ARC (25-shot) | 26.71 |
|
| 83 |
+
| HellaSwag (10-shot) | 25.6 |
|
| 84 |
+
| MMLU (5-shot) | 23.0 |
|
| 85 |
+
| TruthfulQA (0-shot) | 50.59 |
|
| 86 |
+
| Winogrande (5-shot) | 49.72 |
|
| 87 |
+
| GSM8K (5-shot) | 0.0 |
|
| 88 |
+
| DROP (3-shot) | 0.76 |
|