Instructions to use Junping0645/vtuber with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Junping0645/vtuber with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("EleutherAI/polyglot-ko-3.8b") model = PeftModel.from_pretrained(base_model, "Junping0645/vtuber") - Transformers
How to use Junping0645/vtuber with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Junping0645/vtuber")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Junping0645/vtuber", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Junping0645/vtuber with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Junping0645/vtuber" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Junping0645/vtuber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Junping0645/vtuber
- SGLang
How to use Junping0645/vtuber 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 "Junping0645/vtuber" \ --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": "Junping0645/vtuber", "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 "Junping0645/vtuber" \ --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": "Junping0645/vtuber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Junping0645/vtuber with Docker Model Runner:
docker model run hf.co/Junping0645/vtuber
Update README.md
Browse files
README.md
CHANGED
|
@@ -75,4 +75,4 @@ print(tokenizer.decode(out[0], skip_special_tokens=True))
|
|
| 75 |
## 참고
|
| 76 |
- VRAM: 학습 3.4GB / 추론 약 3.3GB (RTX 3060 Ti 8GB 기준)
|
| 77 |
- Framework: PEFT 0.19.1, transformers 5.13.0, bitsandbytes 0.49.2, torch 2.11.0+cu128
|
| 78 |
-
|
|
|
|
| 75 |
## 참고
|
| 76 |
- VRAM: 학습 3.4GB / 추론 약 3.3GB (RTX 3060 Ti 8GB 기준)
|
| 77 |
- Framework: PEFT 0.19.1, transformers 5.13.0, bitsandbytes 0.49.2, torch 2.11.0+cu128
|
| 78 |
+
|