Instructions to use anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g") model = AutoModelForCausalLM.from_pretrained("anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g
- SGLang
How to use anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g 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 "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g" \ --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": "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g", "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 "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g" \ --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": "anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g with Docker Model Runner:
docker model run hf.co/anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g
Cuda error with ooba-booga WebUI
Not sure why it's doing this? It's recognizing the gpu but it's saying the CUDA extension isn't installed and it causes it to not work. I have a 2060 super.
Here's the error:
CUDA SETUP: CUDA runtime path found: C:\Users\user\Documents\oobabooga-windows\installer_files\env\bin\cudart64_110.dll
CUDA SETUP: Highest compute capability among GPUs detected: 7.5
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary C:\Users\user\Documents\oobabooga-windows\installer_files\env\lib\site-packages\bitsandbytes\libbitsandbytes_cuda117.dll...
Loading anon8231489123_gpt4-x-alpaca-13b-native-4bit-128g...
CUDA extension not installed.
Loading model ...
Done.
Maybe it's a problem with ooba?
I think thats related to the way oobaboogie is installed. I did a clean install of it in a new folder and the cuda exension error went poof. :D
I think thats related to the way oobaboogie is installed. I did a clean install of it in a new folder and the cuda exension error went poof. :D
Oh great, I will try that thanks!
Hey did you manage to fix this? I'm currently facing the same problem