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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maicomputer/alpaca-native") model = AutoModelForCausalLM.from_pretrained("maicomputer/alpaca-native") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Adding `safetensors` variant of this model
#26 opened 6 months ago
by
SFconvertbot
Request: DOI
1
#25 opened 7 months ago
by
aaaaakino
Adding `safetensors` variant of this model
#24 opened about 2 years ago
by
SFconvertbot
When I using the model, I got a information like that and the program stop.
#22 opened over 2 years ago
by
Rosher
Update tokenizer_config.json
🤗 2
#21 opened almost 3 years ago
by
usoni1
[HELP!!] question about special_tokens_map.json
#20 opened about 3 years ago
by
zzz96
Unpickling Error when loading model with lightning transformers
#19 opened about 3 years ago
by
cyrus0120
Add support for batched generation
1
#18 opened about 3 years ago
by
jacobthebanana
Error when generating multiple outputs using hugging face generation
❤️ 1
2
#16 opened about 3 years ago
by
DongfuJiang
how to ues it?
👍 2
1
#14 opened about 3 years ago
by
lklklk
Generation is great, but begins to miss spaces between words
2
#13 opened about 3 years ago
by
SirWaffle
Question about the command used
#12 opened about 3 years ago
by
8bit-coder
What script/repo you used exactly to train?
1
#11 opened about 3 years ago
by
francis2tm
Finetuning in different languages
#10 opened about 3 years ago
by
k0ntra
Will this work on an RTX 3080 10gb?
2
#8 opened about 3 years ago
by
TheAIGuyz
api-inference is not working
4
#6 opened about 3 years ago
by
baby1
Can we get a 4bit quantized version?
11
#5 opened about 3 years ago
by
yehiaserag
Quality seems to be different from the official demo
2
#4 opened about 3 years ago
by
kz919
FYI: LLaMA PR was merged into huggingface/transformers
👍 1
1
#3 opened about 3 years ago
by
unojcn9f
Can't convert the model
#2 opened about 3 years ago
by
the
fantastic
🤝 1
5
#1 opened about 3 years ago
by
Yoshiii