Instructions to use faizanasghar43/rvc-vst with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use faizanasghar43/rvc-vst with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="faizanasghar43/rvc-vst") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("faizanasghar43/rvc-vst") model = AutoModelForCausalLM.from_pretrained("faizanasghar43/rvc-vst") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use faizanasghar43/rvc-vst with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "faizanasghar43/rvc-vst" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "faizanasghar43/rvc-vst", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/faizanasghar43/rvc-vst
- SGLang
How to use faizanasghar43/rvc-vst 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 "faizanasghar43/rvc-vst" \ --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": "faizanasghar43/rvc-vst", "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 "faizanasghar43/rvc-vst" \ --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": "faizanasghar43/rvc-vst", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use faizanasghar43/rvc-vst with Docker Model Runner:
docker model run hf.co/faizanasghar43/rvc-vst
Ctrl+K
- 1.57 kB
- 483 MB xet
- 424 MB xet
- 380 MB xet
- 509 MB xet
- 394 MB xet
- 57.6 MB xet
- 405 MB xet
- 398 MB xet
- 488 MB xet
- 878 MB xet
- 399 MB xet
- 172 MB xet
- 606 MB xet
- 401 MB xet
- 538 MB xet
- 431 MB xet
- 611 MB xet
- 347 MB xet
- 456 MB xet
- 519 MB xet
- 438 MB xet
- 641 MB xet
- 551 MB xet
- 475 MB xet
- 444 MB xet
- 426 MB xet
- 219 MB xet
- 607 MB xet
- 386 MB xet
- 593 MB xet
- 517 MB xet
- 628 MB xet
- 474 MB xet
- 562 MB xet
- 3.83 kB
- 975 Bytes
- 80.4 MB xet
- 4.97 GB xet
- 1.46 GB xet
- 20.9 kB
- 584 MB xet
- 17.2 MB xet
- 54.7 kB