Run this model with HF Jobs
Run namuax/AcaciaTree-0.5-2B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/namuax/AcaciaTree-0.5-2B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/namuax/AcaciaTree-0.5-2B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/namuax/AcaciaTree-0.5-2B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/namuax/AcaciaTree-0.5-2B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use namuax/AcaciaTree-0.5-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use namuax/AcaciaTree-0.5-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="namuax/AcaciaTree-0.5-2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("namuax/AcaciaTree-0.5-2B") model = AutoModelForCausalLM.from_pretrained("namuax/AcaciaTree-0.5-2B", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use namuax/AcaciaTree-0.5-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "namuax/AcaciaTree-0.5-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "namuax/AcaciaTree-0.5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/namuax/AcaciaTree-0.5-2B
- SGLang
How to use namuax/AcaciaTree-0.5-2B 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 "namuax/AcaciaTree-0.5-2B" \ --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": "namuax/AcaciaTree-0.5-2B", "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 "namuax/AcaciaTree-0.5-2B" \ --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": "namuax/AcaciaTree-0.5-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use namuax/AcaciaTree-0.5-2B with Docker Model Runner:
docker model run hf.co/namuax/AcaciaTree-0.5-2B
모델 설명
기반 모델
IBM Granite 3.1 - 2B Instruct를 기반으로 개발된 20억 개의 매개변수를 가진 명령어 최적화 언어 모델입니다.
미세 조정 목표
본 모델은 700개의 구조화된 사업계획서 데이터를 활용하여 미세 조정(Fine-Tuning)되었습니다. 사용자 입력에 기반하여 한국어로 작성된 체계적인 사업계획서를 생성하는 데 특화되어 있습니다.
- 체계적인 사업계획서를 한국어로 생성합니다.
- 사용자 입력을 바탕으로 전문적이고 논리적인 보고서를 작성합니다.
- 비즈니스 개요, 문제점 및 해결 방안, 시장 분석, 재무 계획 등 구조화된 형식을 엄격하게 준수합니다.
한국어 응답
이 모델은 기본적으로 한국어 응답을 생성하도록 미세 조정되었습니다.
데이터셋
데이터셋 설명
- 형식: 약 700개의 Markdown 형식 사업계획서 데이터셋입니다.
- 출처: 나무기술(namuai-x) 내부에서 자체 수집 및 가공한 데이터를 기반으로 구성되었습니다.
- 길이: 각 보고서는 1페이지 분량이며, 다음과 같은 주요 섹션을 포함합니다.
- 비즈니스 개요
- 문제점 및 해결 방안
- 사업 모델 및 수익 구조
- 시장 및 경쟁 분석
- 마케팅 전략
- 핵심 성과 지표 (KPI)
- 재무 계획 및 추진 일정
입력과 출력 예시
입력:
사용자가 제공한 간략한 사업 설명:
이 사업은 공단의 수익성을 높이기 위한 원가 분석을 추진하는 것으로, 2023년 4월부터 7월까지 진행됩니다. 주요 분석 대상은 체육사업과 주차사업으로, 수익 증대와 비용 절감을 위해 체계적인 원가 분석이 필요합니다. 이 과정에서 고객의 요구와 시장 트렌드를 반영한 마케팅 전략도 병행하여, 영업이익률 개선과 고객 만족도를 높이는 것을 목표로 합니다. 최종적으로 분석 결과를 바탕으로 실행 계획을 수립해 나갈 예정입니다.
출력:
구조화된 사업계획서:
# 비즈니스 개요
* 공단의 수익성을 높이기 위한 원가 분석 추진
* 2023년 4월부터 7월까지 진행
* 체육사업 및 주차사업으로 분석 대상
# 문제점 및 해결 방안
* 현재 수익 증대 및 비용 절감 필요
* 체계적인 원가 분석을 통해 문제점 파악
* 고객 요구 반영 및 시장 트렌드 분석 필요
# 사업 모델 및 수익 구조
* 분석 결과를 바탕으로 수익 증대 전략 수립
* 체육시설 및 주차시설의 수익성 향상 목표
* 비용 절감을 통한 운영 효율성 증대
# 시장 및 경쟁 분석
* 공단의 수익성 향상에 대한 고객 요구 증가
* 경쟁 기관과의 비교를 통한 차별화 전략 필요
* 시장 트렌드 분석을 통한 적극적인 대응 전략 필요
# 마케팅 전략
* 고객 요구 반영한 서비스 개선
* 체육시설 및 주차시설의 특성 강조
* 홍보 활동을 통한 고객 유치 및 만족도 향상
# 핵심 성과 지표 KPI
* 분석 완료 후 영업이익률 개선 목표
* 비용 절감률 및 수익 증가율 모니터링
* 고객 만족도 및 재방문율 증가
# 재무 계획 및 추진 일정
* 2023년 4월부터 7월까지 단계별 추진
* 각 분석 부서별로 나누어 진행
* 분석 결과에 따른 실행 계획 수립 예정
학습 상세 정보
- 학습에 사용된 GPU: 4개의 Tesla V100-PCIE-32GB GPU
- 최대 시퀀스 길이: 2048
사용법
설치
pip install torch
pip install accelerate
pip install transformers
모델 로드 및 사용
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_path = "namuai-x/AcaciaTree-2B"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto")
model.eval()
# 자신의 사업에 대해 자유롭게 설명해주세요.
chat = [
{ "role": "user", "content": "이 사업은 공단의 수익성을 높이기 위한 원가 분석을 추진하는 것으로, 2023년 4월부터 7월까지 진행됩니다. 주요 분석 대상은 체육사업과 주차사업으로, 수익 증대와 비용 절감을 위해 체계적인 원가 분석이 필요합니다. 이 과정에서 고객의 요구와 시장 트렌드를 반영한 마케팅 전략도 병행하여, 영업이익률 개선과 고객 만족도를 높이는 것을 목표로 합니다. 최종적으로 분석 결과를 바탕으로 실행 계획을 수립해 나갈 예정입니다." },
]
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipe(chat, max_new_tokens=2048, do_sample=False)
response = outputs[0]['generated_text'][len(chat):].strip()
print(response)
한계 사항
- 언어: 한국어에 최적화되어 있으며, 다른 언어의 출력 품질은 보장되지 않습니다.
- 형식 제한: 고정된 사업계획서 형식으로 출력되므로, 모든 사용자 요구사항에 적합하지 않을 수 있습니다.
License
- Apache-2.0
Contact
- Downloads last month
- 8