Instructions to use GreatCaptainNemo/ProLLaMA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GreatCaptainNemo/ProLLaMA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GreatCaptainNemo/ProLLaMA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GreatCaptainNemo/ProLLaMA") model = AutoModelForCausalLM.from_pretrained("GreatCaptainNemo/ProLLaMA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GreatCaptainNemo/ProLLaMA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GreatCaptainNemo/ProLLaMA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GreatCaptainNemo/ProLLaMA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GreatCaptainNemo/ProLLaMA
- SGLang
How to use GreatCaptainNemo/ProLLaMA 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 "GreatCaptainNemo/ProLLaMA" \ --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": "GreatCaptainNemo/ProLLaMA", "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 "GreatCaptainNemo/ProLLaMA" \ --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": "GreatCaptainNemo/ProLLaMA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GreatCaptainNemo/ProLLaMA with Docker Model Runner:
docker model run hf.co/GreatCaptainNemo/ProLLaMA
Commit History
-
Update README.md
Verified signature983b5d4 -
Add `library_name` and `pipeline_tag` to model card (#7)
Verified signature- Add `library_name` and `pipeline_tag` to model card (b729aeaf0aefae2803eeae8b0844e90f08f16825) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>e6398f4
-
Update README.md
Verified signaturec7adc64
-
Adding `safetensors` variant of this model (#5)
Verified signature- Adding `safetensors` variant of this model (efe93fccbf01d49e5834d7f5cadf5e663961e3be) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>7c873bf
-
Update README.md
Verified signature5fe62a3
-
Update config.json
Verified signatureFix a bug resulting from the transformers/models/llama/convert_llama_weights_to_hf.py.d85b55d
-
Update README.md
Verified signature75172e7
-
Update README.md
Verified signaturefc323c7
-
Update README.md
Verified signature2e12f20 -
Update README.md
Verified signaturedf0c3d0
-
Update README.md
Verified signaturee968e59
-
Update README.md
Verified signaturefe66366
-
Upload pytorch_model-00001-of-00002.bin
Verified signature7703a42 -
Upload pytorch_model-00002-of-00002.bin
Verified signaturebb1ffdf -
Upload 3 files
Verified signaturec5d5f28 -
Upload 4 files
Verified signature5463609
-
initial commit
Verified signature846a8e5