Instructions to use upstage/SOLAR-10.7B-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use upstage/SOLAR-10.7B-v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="upstage/SOLAR-10.7B-v1.0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("upstage/SOLAR-10.7B-v1.0") model = AutoModelForCausalLM.from_pretrained("upstage/SOLAR-10.7B-v1.0", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use upstage/SOLAR-10.7B-v1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "upstage/SOLAR-10.7B-v1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "upstage/SOLAR-10.7B-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/upstage/SOLAR-10.7B-v1.0
- SGLang
How to use upstage/SOLAR-10.7B-v1.0 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 "upstage/SOLAR-10.7B-v1.0" \ --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": "upstage/SOLAR-10.7B-v1.0", "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 "upstage/SOLAR-10.7B-v1.0" \ --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": "upstage/SOLAR-10.7B-v1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use upstage/SOLAR-10.7B-v1.0 with Docker Model Runner:
docker model run hf.co/upstage/SOLAR-10.7B-v1.0
LLM 모델의 라이선스 정책에 대해서 문의 드립니다.
#16
by KaiLee76 - opened
안녕하세요. KT DS에 이광용 차장이라고 합니다.
해당 LLM 모델(SOLAR-10.7B-v1.0)의 라이선스 정책에 대해서 아래와 같이 문의 드립니다.
- 당사가 해당 LLM 모델을 수정 후 비즈니스에 활용 또는 유료화에 제약사항이 있는지 여부
- 당사가 해당 LLM 모델을 포함하여 모델간 병합을 통한 신규 모델 생성시 비즈니스에 활용 또는 유료화에 제약사항이 있는지 여부
- 기타 해당 LLM 모델의 라이선스 정책이 있는지 여부
번거로우시겠지만, 답변 부탁 드리겠습니다.
감사합니다.
Model card 잘 읽어보면 다 나옵니다