Instructions to use JosephusCheung/GuanacoOnConsumerHardware with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JosephusCheung/GuanacoOnConsumerHardware with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JosephusCheung/GuanacoOnConsumerHardware")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JosephusCheung/GuanacoOnConsumerHardware") model = AutoModelForCausalLM.from_pretrained("JosephusCheung/GuanacoOnConsumerHardware", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JosephusCheung/GuanacoOnConsumerHardware with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JosephusCheung/GuanacoOnConsumerHardware" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JosephusCheung/GuanacoOnConsumerHardware", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JosephusCheung/GuanacoOnConsumerHardware
- SGLang
How to use JosephusCheung/GuanacoOnConsumerHardware 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 "JosephusCheung/GuanacoOnConsumerHardware" \ --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": "JosephusCheung/GuanacoOnConsumerHardware", "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 "JosephusCheung/GuanacoOnConsumerHardware" \ --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": "JosephusCheung/GuanacoOnConsumerHardware", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JosephusCheung/GuanacoOnConsumerHardware with Docker Model Runner:
docker model run hf.co/JosephusCheung/GuanacoOnConsumerHardware
Commit History
-
Update README.md
fc2dc9c -
Update README.md
7e39dfd -
Update README.md
7166e5b
-
It is possible to request to continue an unfinished conversation.
2083dca -
Upload translate.jpeg
Requesting a translation during a conversation is feasible.4f9a17b -
Upload roleplay.jpg
Sort of roleplay, but with the flexibility to add details, facts, and keywords that highlight specific characteristics of the system prompt.9a6b43d -
Update README.md
469c12c -
Upload 5 files
2409bd2
-
Upload guanaco7b-4bit-128g.pt
6c48727 -
Upload guanaco7b-4bit-128g.pt
d99d2ca
-
Upload guanaco7b-4bit-128g.pt
013efc3
-
Upload guanaco7b-4bit-128g.pt
a174b02
-
Upload guanaco7b-4bit-128g.pt
855abf3 -
Upload guanaco7b-4bit-128g.pt
37a900b
-
Delete guanaco7b-4bit.pt
7d088df -
Upload guanaco7b-4bit-128g.pt
3d5f6f5
-
Upload 4 files
16b9995 -
Upload guanaco7b-4bit.pt
0e48778 -
Update README.md
fc99bb6 -
initial commit
Joseph Cheung2013362