Text Generation
Transformers
Safetensors
GGUF
llama-cpp-python
MLX
Korean
English
qwen2
finance
korean
stock-analysis
reasoning
dpo
llama-cpp
apple-silicon
4bit
quantized
vllm
ollama
conversational
text-generation-inference
Instructions to use intrect/VELA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intrect/VELA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="intrect/VELA") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("intrect/VELA") model = AutoModelForCausalLM.from_pretrained("intrect/VELA", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use intrect/VELA with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="intrect/VELA", filename="vela-dpo-v6-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - MLX
How to use intrect/VELA with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("intrect/VELA") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use intrect/VELA with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf intrect/VELA:Q4_K_M # Run inference directly in the terminal: llama cli -hf intrect/VELA:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf intrect/VELA:Q4_K_M # Run inference directly in the terminal: llama cli -hf intrect/VELA:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf intrect/VELA:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf intrect/VELA:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf intrect/VELA:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf intrect/VELA:Q4_K_M
Use Docker
docker model run hf.co/intrect/VELA:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use intrect/VELA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "intrect/VELA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intrect/VELA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/intrect/VELA:Q4_K_M
- SGLang
How to use intrect/VELA 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 "intrect/VELA" \ --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": "intrect/VELA", "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 "intrect/VELA" \ --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": "intrect/VELA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use intrect/VELA with Ollama:
ollama run hf.co/intrect/VELA:Q4_K_M
- Unsloth Studio
How to use intrect/VELA with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for intrect/VELA to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for intrect/VELA to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for intrect/VELA to start chatting
- Pi
How to use intrect/VELA with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "intrect/VELA"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "intrect/VELA" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use intrect/VELA with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "intrect/VELA"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "intrect/VELA" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use intrect/VELA with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "intrect/VELA"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "intrect/VELA" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intrect/VELA", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use intrect/VELA with Docker Model Runner:
docker model run hf.co/intrect/VELA:Q4_K_M
- Lemonade
How to use intrect/VELA with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull intrect/VELA:Q4_K_M
Run and chat with the model
lemonade run user.VELA-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use intrect/VELA with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "intrect/VELA"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default intrect/VELA
Run Hermes
hermes
- Atomic Chat
Update model card for DPO v4
Browse files
README.md
CHANGED
|
@@ -1,3 +1,178 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- ko
|
| 5 |
+
- en
|
| 6 |
+
library_name: transformers
|
| 7 |
+
tags:
|
| 8 |
+
- finance
|
| 9 |
+
- korean
|
| 10 |
+
- stock-analysis
|
| 11 |
+
- reasoning
|
| 12 |
+
- dpo
|
| 13 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# VELA (Vector-Encoded Learning Agent)
|
| 18 |
+
|
| 19 |
+
**한국 주식시장 전문 AI 애널리스트**
|
| 20 |
+
|
| 21 |
+
VELA는 한국 주식시장 뉴스 분석 및 투자 리서치를 위해 특화된 7B 파라미터 언어 모델입니다.
|
| 22 |
+
|
| 23 |
+
## Model Details
|
| 24 |
+
|
| 25 |
+
| 항목 | 내용 |
|
| 26 |
+
|------|------|
|
| 27 |
+
| **Base Model** | Qwen/Qwen2.5-7B-Instruct |
|
| 28 |
+
| **Training Stage** | SFT + DPO v4 |
|
| 29 |
+
| **Parameters** | 7.6B |
|
| 30 |
+
| **Context Length** | 8,192 tokens |
|
| 31 |
+
| **Precision** | BFloat16 |
|
| 32 |
+
| **License** | Apache 2.0 |
|
| 33 |
+
|
| 34 |
+
## Training Pipeline
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
Qwen2.5-7B-Instruct
|
| 38 |
+
↓
|
| 39 |
+
SFT (930K samples)
|
| 40 |
+
- 한국 주식 뉴스 분석
|
| 41 |
+
- 리서치 리포트 생성
|
| 42 |
+
- Reasoning Trace 학습
|
| 43 |
+
↓
|
| 44 |
+
DPO v4 (7,681 pairs)
|
| 45 |
+
- 중국어/영어 leak 교정
|
| 46 |
+
- 한국어 출력 강화
|
| 47 |
+
- 형식 준수 향상
|
| 48 |
+
↓
|
| 49 |
+
VELA v1.0
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Capabilities
|
| 53 |
+
|
| 54 |
+
- **뉴스 영향 분석**: 주식 관련 뉴스의 시장 영향도 예측
|
| 55 |
+
- **리서치 리포트 생성**: 구조화된 투자 분석 보고서 작성
|
| 56 |
+
- **Reasoning Trace**: 단계별 분석 사고과정 생성
|
| 57 |
+
- **다중 소스 종합**: 뉴스, 시세, 수급 데이터 통합 분석
|
| 58 |
+
|
| 59 |
+
## Usage
|
| 60 |
+
|
| 61 |
+
### Transformers
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 65 |
+
import torch
|
| 66 |
+
|
| 67 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 68 |
+
"intrect/vela",
|
| 69 |
+
torch_dtype=torch.bfloat16,
|
| 70 |
+
device_map="auto"
|
| 71 |
+
)
|
| 72 |
+
tokenizer = AutoTokenizer.from_pretrained("intrect/vela")
|
| 73 |
+
|
| 74 |
+
messages = [
|
| 75 |
+
{"role": "system", "content": "당신은 한국 주식 전문 애널리스트입니다."},
|
| 76 |
+
{"role": "user", "content": "삼성전자 HBM 사업 전망을 분석해주세요."}
|
| 77 |
+
]
|
| 78 |
+
|
| 79 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 80 |
+
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 81 |
+
|
| 82 |
+
outputs = model.generate(
|
| 83 |
+
**inputs,
|
| 84 |
+
max_new_tokens=1024,
|
| 85 |
+
temperature=0.7,
|
| 86 |
+
do_sample=True
|
| 87 |
+
)
|
| 88 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
### vLLM (Recommended for Production)
|
| 92 |
+
|
| 93 |
+
```python
|
| 94 |
+
from vllm import LLM, SamplingParams
|
| 95 |
+
|
| 96 |
+
llm = LLM(model="intrect/vela", dtype="bfloat16")
|
| 97 |
+
params = SamplingParams(temperature=0.7, max_tokens=1024)
|
| 98 |
+
|
| 99 |
+
prompts = ["삼성전자 HBM 시장 전망을 분석해주세요."]
|
| 100 |
+
outputs = llm.generate(prompts, params)
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
### MLX (Apple Silicon)
|
| 104 |
+
|
| 105 |
+
MLX 변환 모델은 별도 저장소에서 제공 예정입니다.
|
| 106 |
+
|
| 107 |
+
## Output Format
|
| 108 |
+
|
| 109 |
+
VELA는 다음과 같은 구조화된 출력을 생성합니다:
|
| 110 |
+
|
| 111 |
+
```markdown
|
| 112 |
+
## Executive Summary
|
| 113 |
+
[2-3문장 핵심 요약]
|
| 114 |
+
|
| 115 |
+
## Key Metrics
|
| 116 |
+
| 지표 | 수치 |
|
| 117 |
+
|------|------|
|
| 118 |
+
| 현재가 | ₩XX,XXX |
|
| 119 |
+
| PER | XX.X |
|
| 120 |
+
| ... | ... |
|
| 121 |
+
|
| 122 |
+
## 시장 동향 분석
|
| 123 |
+
[상세 분석]
|
| 124 |
+
|
| 125 |
+
## 리스크 요인
|
| 126 |
+
- 리스크 1
|
| 127 |
+
- 리스크 2
|
| 128 |
+
|
| 129 |
+
## 투자 의견
|
| 130 |
+
[종합 의견]
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
## Training Data
|
| 134 |
+
|
| 135 |
+
| 데이터셋 | 샘플 수 | 용도 |
|
| 136 |
+
|----------|---------|------|
|
| 137 |
+
| 한국 주식 뉴스 | 412K | SFT 기반 데이터 |
|
| 138 |
+
| 리서치 리포트 | 50K | 분석 형식 학습 |
|
| 139 |
+
| Reasoning Traces | 5K | 사고과정 학습 |
|
| 140 |
+
| DPO Pairs | 7.7K | 선호도 정렬 |
|
| 141 |
+
|
| 142 |
+
## DPO v4 Improvements
|
| 143 |
+
|
| 144 |
+
DPO v4는 다음 문제들을 해결합니다:
|
| 145 |
+
|
| 146 |
+
- ✅ **중국어 leak 제거**: 중국어 문자 출력 방지
|
| 147 |
+
- ✅ **영어 leak 감소**: 불필요한 영어 사용 최소화
|
| 148 |
+
- ✅ **형식 준수**: 지정된 출력 형식 엄격 준수
|
| 149 |
+
- ✅ **한국어 품질**: 자연스러운 한국어 표현
|
| 150 |
+
|
| 151 |
+
## Limitations
|
| 152 |
+
|
| 153 |
+
- 실시간 시세 데이터 접근 불가 (외부 API 필요)
|
| 154 |
+
- 투자 조언이 아닌 정보 제공 목적
|
| 155 |
+
- 8K 컨텍스트 제한으로 긴 문서 처리 한계
|
| 156 |
+
|
| 157 |
+
## Citation
|
| 158 |
+
|
| 159 |
+
```bibtex
|
| 160 |
+
@misc{vela2025,
|
| 161 |
+
title={VELA: Vector-Encoded Learning Agent for Korean Stock Analysis},
|
| 162 |
+
author={intrect},
|
| 163 |
+
year={2025},
|
| 164 |
+
publisher={Hugging Face},
|
| 165 |
+
url={https://huggingface.co/intrect/vela}
|
| 166 |
+
}
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
## Version History
|
| 170 |
+
|
| 171 |
+
| 버전 | 날짜 | 변경사항 |
|
| 172 |
+
|------|------|----------|
|
| 173 |
+
| v1.0 (DPO v4) | 2025-01-28 | DPO v4 병합, 중국어/영어 leak 해결 |
|
| 174 |
+
| v0.9 (SFT) | 2025-01-15 | SFT 베이스 모델 공개 |
|
| 175 |
+
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
**Disclaimer**: 이 모델의 출력은 투자 조언이 아닙니다. 모든 투자 결정은 본인의 판단과 책임 하에 이루어져야 합니다.
|