Instructions to use maicomputer/alpaca-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maicomputer/alpaca-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maicomputer/alpaca-13b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maicomputer/alpaca-13b") model = AutoModelForCausalLM.from_pretrained("maicomputer/alpaca-13b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maicomputer/alpaca-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maicomputer/alpaca-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maicomputer/alpaca-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/maicomputer/alpaca-13b
- SGLang
How to use maicomputer/alpaca-13b 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 "maicomputer/alpaca-13b" \ --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": "maicomputer/alpaca-13b", "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 "maicomputer/alpaca-13b" \ --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": "maicomputer/alpaca-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use maicomputer/alpaca-13b with Docker Model Runner:
docker model run hf.co/maicomputer/alpaca-13b
Commit History
-
Delete README.md
Verified signature64da111
-
rename tokenizer name (#2)
- rename tokenizer name (59cde474157e9c475b3244c5ef5b315db61d9029) Co-authored-by: Yuchen Lin <yuchenlin@users.noreply.huggingface.co>07dd28d
-
Update README.md
464a0bd -
Upload training_args.bin with huggingface_hub
727b9df -
Upload trainer_state.json with huggingface_hub
10d621d -
Upload tokenizer_config.json with huggingface_hub
62ed6b2 -
Upload tokenizer.model with huggingface_hub
b1fa87c -
Upload special_tokens_map.json with huggingface_hub
5070140 -
Upload pytorch_model.bin.index.json with huggingface_hub
b29716b -
Upload pytorch_model-00006-of-00006.bin with huggingface_hub
05b1340 -
Upload pytorch_model-00005-of-00006.bin with huggingface_hub
88fb919 -
Upload pytorch_model-00004-of-00006.bin with huggingface_hub
0595f96 -
Upload pytorch_model-00003-of-00006.bin with huggingface_hub
a197834 -
Upload pytorch_model-00002-of-00006.bin with huggingface_hub
5147b0a -
Upload pytorch_model-00001-of-00006.bin with huggingface_hub
3f4cee6 -
Upload generation_config.json with huggingface_hub
f8f0f4f -
Upload config.json with huggingface_hub
0cc1533 -
Upload added_tokens.json with huggingface_hub
3104a6b -
Create README.md
b2d7d4a -
Upload generation_config.json with huggingface_hub
8037d3b -
Upload config.json with huggingface_hub
e933696 -
Upload added_tokens.json with huggingface_hub
2433444 -
Delete workspace
28a930c -
Upload /workspace/stanford_alpaca/output/generation_config.json with huggingface_hub
458f3bc -
Upload /workspace/stanford_alpaca/output/config.json with huggingface_hub
1e59f2c -
Upload /workspace/stanford_alpaca/output/added_tokens.json with huggingface_hub
6d9811b -
Upload /workspace/stanford_alpaca/output/added_tokens.json with huggingface_hub
8bcde21 -
initial commit
C159eca6