Instructions to use maicomputer/alpaca-native with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maicomputer/alpaca-native with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maicomputer/alpaca-native")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maicomputer/alpaca-native") model = AutoModelForCausalLM.from_pretrained("maicomputer/alpaca-native", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maicomputer/alpaca-native with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maicomputer/alpaca-native" # 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-native", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/maicomputer/alpaca-native
- SGLang
How to use maicomputer/alpaca-native 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-native" \ --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-native", "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-native" \ --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-native", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use maicomputer/alpaca-native with Docker Model Runner:
docker model run hf.co/maicomputer/alpaca-native
Commit History
-
Update tokenizer_config.json
Need to add bos_token, eos_token and unk_token explicitly. Otherwise, it causes maximum recursion depth error. See https://github.com/EleutherAI/lm-evaluation-harness/issues/44216592fa
-
Update README.md
cc7773c -
Update README.md
ef47142 -
Update README.md
88071b4
-
Update tokenizer_config.json
062111f -
Update config.json
80a94c0
-
Update README.md
8446ce8 -
Update README.md
d689ebe -
https://boards.4channel.org/g/thread/92173062#p92182663
https://boards.4channel.org/g/thread/92173062#p9218266330b0f97
-
Update README.md
cecc16d -
Update README.md
218d457 -
Upload training_args.bin with huggingface_hub
b507b3c -
Upload trainer_state.json with huggingface_hub
5013d7a -
Upload tokenizer_config.json with huggingface_hub
665a929 -
Upload tokenizer.model with huggingface_hub
6a18125 -
Upload special_tokens_map.json with huggingface_hub
4381f6d -
Upload pytorch_model.bin.index.json with huggingface_hub
2d4a533 -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
8ab1213 -
Upload pytorch_model-00002-of-00003.bin with huggingface_hub
e681cfe -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
3044a12 -
Upload generation_config.json with huggingface_hub
ee0a9e6 -
Upload config.json with huggingface_hub
e4e8d80 -
Upload added_tokens.json with huggingface_hub
b4a3d6f -
Delete output
f4f7df0 -
Upload output/generation_config.json with huggingface_hub
bcf1a64 -
Upload output/config.json with huggingface_hub
39e0f80 -
Upload output/added_tokens.json with huggingface_hub
301f53d -
Delete checkpoint-800
8c02b37 -
Delete checkpoint-400
fef1d7b -
Delete checkpoint-200
77c9542
-
Update README.md
aa00820 -
Update README.md
2bad570 -
Update README.md
3fc930f
-
Upload checkpoint-800/training_args.bin with huggingface_hub
cde04d2 -
Upload checkpoint-800/trainer_state.json with huggingface_hub
161a5eb -
Upload checkpoint-800/tokenizer_config.json with huggingface_hub
0f6ee48 -
Upload checkpoint-800/tokenizer.model with huggingface_hub
d98593a -
Upload checkpoint-800/special_tokens_map.json with huggingface_hub
f35564f -
Upload checkpoint-800/scheduler.pt with huggingface_hub
73a04b0 -
Upload checkpoint-800/rng_state_3.pth with huggingface_hub
283f809 -
Upload checkpoint-800/rng_state_2.pth with huggingface_hub
a4bfe81 -
Upload checkpoint-800/rng_state_1.pth with huggingface_hub
53d3590 -
Upload checkpoint-800/rng_state_0.pth with huggingface_hub
c98470f -
Upload checkpoint-800/pytorch_model.bin.index.json with huggingface_hub
39453b7 -
Upload checkpoint-800/pytorch_model-00003-of-00003.bin with huggingface_hub
916c3fe -
Upload checkpoint-800/pytorch_model-00002-of-00003.bin with huggingface_hub
98bfed5 -
Upload checkpoint-800/pytorch_model-00001-of-00003.bin with huggingface_hub
9cc233e -
Upload checkpoint-800/optimizer.pt with huggingface_hub
5bc2d9e -
Upload checkpoint-800/generation_config.json with huggingface_hub
cf159e1 -
Upload checkpoint-800/config.json with huggingface_hub
963e848