Instructions to use Changgil/K2S3-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Changgil/K2S3-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Changgil/K2S3-v0.1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Changgil/K2S3-v0.1") model = AutoModelForCausalLM.from_pretrained("Changgil/K2S3-v0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Changgil/K2S3-v0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Changgil/K2S3-v0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Changgil/K2S3-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Changgil/K2S3-v0.1
- SGLang
How to use Changgil/K2S3-v0.1 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 "Changgil/K2S3-v0.1" \ --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": "Changgil/K2S3-v0.1", "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 "Changgil/K2S3-v0.1" \ --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": "Changgil/K2S3-v0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Changgil/K2S3-v0.1 with Docker Model Runner:
docker model run hf.co/Changgil/K2S3-v0.1
Developed by :
- K2S3
Model Number:
- K2S3-v0.1
Base Model Weight :
- mistralai/Mistral-7B-v0.1
Model Description :
- The K2S3 v0.1 model utilizes mistral weights, having undergone depth up scaling to double its size, and has been enhanced with the addition of Korean vocabulary and merges to the tokenizer.
- K2S3 v0.1 ๋ชจ๋ธ์ mistral weight๋ฅผ ํ์ฉํ์์ผ๋ฉฐ, depth up scaling์ ํตํด ๋ชจ๋ธ์ ํฌ๊ธฐ๋ฅผ 2๋ฐฐ๋ก ํ์ฅํ์์ต๋๋ค. ๋ํ, ํ ํฌ๋์ด์ ์๋ ํ๊ธ vocab๊ณผ merges๋ฅผ ์ถ๊ฐํ์ฌ ํ๊ตญ์ด ์ฒ๋ฆฌ ๋ฅ๋ ฅ์ ๊ฐํํ์์ต๋๋ค.
Training Data
- The training data for this model includes alpaca-gpt4-data, and samples from The OpenOrca Dataset.
- ์ด ๋ชจ๋ธ์ ํ๋ จ ๋ฐ์ดํฐ์๋ alpaca-gpt4-data, ๊ทธ๋ฆฌ๊ณ OpenOrca Dataset์์ ์ ๊ณตํ ์ํ๋ค์ด ํฌํจ๋ฉ๋๋ค.
Training Method
- This model was trained on an enhanced version of the base model that underwent depth up scaling by K2S3, using a full parameter tuning method with SFT (Supervised Fine-Tuning).
- ์ด ๋ชจ๋ธ์ K2S3์์ depth up scaling์ ํตํด ํ์ฅํ ๋ฒ์ ์ ๊ธฐ๋ฐ ๋ชจ๋ธ์ ์ฌ์ฉํ์ฌ SFT(Supervised Fine-Tuning)๋ฅผ ์ฌ์ฉํ ์ ์ฒด ํ๋ผ๋ฏธํฐ ์กฐ์ ๋ฐฉ๋ฒ์ผ๋ก ํ๋ จ๋์์ต๋๋ค.
Hardware
- Hardware: Utilized two A100 (80G*2EA) GPUs for training.
- Training Factors: This model was fine-tuned with SFT, using the HuggingFace SFTtrainer and applied fsdp.
- ์ด ๋ชจ๋ธ์ SFT๋ฅผ ์ฌ์ฉํ์ฌ HuggingFace SFTtrainer์ fsdp๋ฅผ ์ ์ฉํ์ฌ ๋ฏธ์ธ์กฐ์ ๋์์ต๋๋ค.
- Downloads last month
- 5