Instructions to use SUBEAN7/FinAI-Llama3-Ko-Adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SUBEAN7/FinAI-Llama3-Ko-Adapter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SUBEAN7/FinAI-Llama3-Ko-Adapter") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SUBEAN7/FinAI-Llama3-Ko-Adapter", device_map="auto") - PEFT
How to use SUBEAN7/FinAI-Llama3-Ko-Adapter with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SUBEAN7/FinAI-Llama3-Ko-Adapter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SUBEAN7/FinAI-Llama3-Ko-Adapter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SUBEAN7/FinAI-Llama3-Ko-Adapter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SUBEAN7/FinAI-Llama3-Ko-Adapter
- SGLang
How to use SUBEAN7/FinAI-Llama3-Ko-Adapter 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 "SUBEAN7/FinAI-Llama3-Ko-Adapter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SUBEAN7/FinAI-Llama3-Ko-Adapter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "SUBEAN7/FinAI-Llama3-Ko-Adapter" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SUBEAN7/FinAI-Llama3-Ko-Adapter", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SUBEAN7/FinAI-Llama3-Ko-Adapter with Docker Model Runner:
docker model run hf.co/SUBEAN7/FinAI-Llama3-Ko-Adapter
FinAI-Llama3-Ko
๐ Korean Financial Recommendation LLM fine-tuned with LoRA and enhanced with customer/product retrieval-based RAG.
Model Overview
FinAI-Llama3-Ko is a Korean financial recommendation model fine-tuned from Llama-3-Open-Ko-8B using LoRA (Low-Rank Adaptation).
The model is designed to provide personalized financial and insurance recommendations by analyzing customer profiles, investment tendencies, and financial goals.
This repository contains LoRA adapter weights only.
To use this model, load the adapter together with the base model:
Base Model: beomi/Llama-3-Open-Ko-8B
Key Features
Personalized Financial Consultation
The model generates recommendations based on:
- Age
- Gender
- Income level
- Occupation
- Credit rating
- Risk preference
- Existing financial products
- Financial goals
Explainable Recommendation Generation
Instead of recommending products directly, the model is trained to generate:
- Customer Analysis
- Investment Profile Analysis
- Recommendation Rationale
- Final Recommendation
This enables more transparent and explainable financial advice.
Insurance & Securities Support
Supported domains:
- Insurance products
- Securities products
- Retirement planning
- Savings planning
- Investment recommendations
- Lifecycle-based financial consultation
Dataset
This model was fine-tuned using the labeled dataset from the AI Hub project:
Financial Products, Services and Consumer Characteristics Dataset
- Provider: AI Hub (Korea)
- Language: Korean
- Domain: Finance / Insurance / Securities
Training Samples
| Category | Samples |
|---|---|
| Securities | 6,400 |
| Insurance | 1,600 |
| Total | 8,000 |
The dataset contains:
- Customer profiles
- Financial product information
- Investment preferences
- Recommendation rationales
- Consultation scenarios
Data Processing
The original structured consultation data was transformed into an instruction-following format suitable for Supervised Fine-Tuning (SFT).
Training examples follow the format:
<s>[INST]
๋น์ ์ ์์ ์ฃผ๊ธฐ ๊ธฐ๋ฐ ๊ธ์ต/๋ณดํ ์ ๋ฌธ AI ์ด๋๋ฐ์ด์ ์
๋๋ค.
[๋ถ์ผ]
๋ณดํ ๋๋ ์ฆ๊ถ
[๊ณ ๊ฐ์ง๋ฌธ]
...
[/INST]
[๊ณ ๊ฐ๋ถ์]
...
[ํฌ์์ฑํฅ]
...
[์ถ์ฒ๊ทผ๊ฑฐ]
...
[์ต์ข
๋ต๋ณ]
...
</s>
Reasoning structure:
๊ณ ๊ฐ์ง๋ฌธ
โ
๊ณ ๊ฐ๋ถ์
โ
ํฌ์์ฑํฅ
โ
์ถ์ฒ๊ทผ๊ฑฐ
โ
์ต์ข
๋ต๋ณ
Training Configuration
| Parameter | Value |
|---|---|
| Base Model | beomi/Llama-3-Open-Ko-8B |
| Fine-tuning Method | LoRA |
| Epochs | 2 |
| Learning Rate | 2e-4 |
| Batch Size | 1 |
| Max Sequence Length | 2048 |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 32 |
| GPU | NVIDIA A100 |
| Framework | Transformers + PEFT |
Example
Input
[๋ถ์ผ]
์ฆ๊ถ
[๊ณ ๊ฐ์ง๋ฌธ]
ํ์ฌ ์์ฐ์ ์ฝ 4์ฒ๋ง์์ด๋ฉฐ, ๊ฒฐํผ์๊ธ ๋ง๋ จ์ด ๋ชฉํ์
๋๋ค. ํฌ์๊ธฐ๊ฐ์ 5๋
์ด์์ด๊ณ , ์๊ธ ์์ค์ ํฌ์ง ์์์ผ๋ฉด ์ข๊ฒ ์ต๋๋ค.
Output
๊ณ ๊ฐ๋๊ป์๋ ๊ฒฐํผ์๊ธ ๋ง๋ จ์ด๋ผ๋ ๋ช
ํํ ๋ชฉ์ ๊ณผ ํจ๊ป, ๋น๊ต์ ์งง์ ํฌ์ ๊ธฐ๊ฐ(5๋
์ด์)์ ๊ฐ๊ณ ๊ณ์๋ฉฐ, ํฐ ์๊ธ์์ค์๋ ๋ถ๋ด์ ๋๋ผ์๋ ๊ฒ์ผ๋ก ํ์
๋ฉ๋๋ค.
์ด์ ๋ฐ๋ผ ๋จ๊ธฐ์ ์ธ ๋ณ๋์ฑ์ด ๋ฎ๊ณ ์ค๋ ํ๋งค๊ฐ ๊ฐ๋ฅํ ์ ๋์ฑ์ ์ค์ํ๊ฒ ๊ณ ๋ คํ์
จ์ผ๋ฉฐ, ์ธ์ ํํ์ด๋ ํ๊ธํ๋ฆ์๋ ๊ด์ฌ์ ๋๊ณ ์์ต๋๋ค.
'OOOOOO OO'๋ ๊ตญ๊ณต์ฑ ๋ฑ ์ฐ๋ ์ฑ๊ถ์ ํฌ์ํด ์ํ์ด ๋งค์ฐ ๋ฎ๊ณ , ํ๊ท 1.62%์ ๊ณผ๊ฑฐ ์ฑ๊ณผ๋ฅผ ๋ณด์ฌ์์ต๋๋ค.
'OOO OOOOOOO' ์ญ์ ๋ง๊ธฐ๊ฐ ์๊ณ ์ธ์ ๋ ํด์ง๊ฐ ๊ฐ๋ฅํ๋ฉฐ, ์ ์ฉ๋๊ฐ ๋์ ๊ธฐ์
์ด์ ์ค์ฌ์ผ๋ก ์ด์ฉ๋์ด ๋ฎ์ ์ํ์ ์ถ๊ตฌํฉ๋๋ค.
๋ ์ํ ๋ชจ๋ ์ํ๋ฑ๊ธ์ด 6๋ฑ๊ธ(๋งค์ฐ๋ฎ์์ํ)์ผ๋ก ๋ถ๋ฅ๋์ด ์์ด, ๊ณ ๊ฐ๋์ ์๊ตฌ ์กฐ๊ฑด์ธ ์๊ธ ์์ค ์ต์ํ์ ์๊ธ ํ์ฉ ์ ์ฐ์ฑ์ ๋์์ ๋ง์กฑํ ์ ์๋ ์ ํ์ง๋ผ๊ณ ํ ์ ์๊ฒ ์ต๋๋ค.
๋ค๋ง ๊ฐ ์ํ๋ง๋ค ์ธ์ ํํ ์ ๊ณต ์ฌ๋ถ ๋๋ ์ถ๊ฐ ๋ฉ์
๋ฐฉ์, ๊ทธ๋ฆฌ๊ณ ์ค์ ํฌ์ ๋์ ์ฐจ์ด๊ฐ ์์ ์ ์์ผ๋ฏ๋ก, ๊ตฌ์ฒด์ ์ธ ์ฅ๋จ์ ๊น์ง ๋น๊ตํ์ ํ ๊ฒฐ์ ํ์๋ฉด ๋์ฑ ์ข๊ฒ ์ต๋๋ค.
RAG Pipeline (Implemented)
FinAI-Llama3-Ko incorporates a RAG-based recommendation system.
- Customer Vector Database (335,506 customer records)
- Product Vector Database
- FAISS-based Semantic Search
- Similar Customer Retrieval
- Personalized Recommendation Generation
Future Work
Intended Use
Suitable for:
- Financial recommendation research
- Korean financial NLP research
- Financial chatbot development
- Insurance recommendation systems
- Retrieval-Augmented Generation experiments
Not intended for:
- Real financial advice
- Investment guarantees
- Production financial services without human review
Limitations
- Recommendations are generated from historical training data.
- Financial products and regulations may change over time.
- Outputs should be reviewed by qualified financial professionals before use in real-world financial decision-making.
Disclaimer
This model is intended for research and educational purposes only.
The generated outputs should not be interpreted as professional financial, investment, insurance, or legal advice.
Users are responsible for verifying all recommendations before making financial decisions.
Model tree for SUBEAN7/FinAI-Llama3-Ko-Adapter
Base model
beomi/Llama-3-Open-Ko-8B