Text Generation
Transformers
Safetensors
opt
galactica
Eval Results (legacy)
text-generation-inference
Instructions to use KnutJaegersberg/Galpaca-30b-MiniOrca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KnutJaegersberg/Galpaca-30b-MiniOrca with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KnutJaegersberg/Galpaca-30b-MiniOrca")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KnutJaegersberg/Galpaca-30b-MiniOrca") model = AutoModelForCausalLM.from_pretrained("KnutJaegersberg/Galpaca-30b-MiniOrca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KnutJaegersberg/Galpaca-30b-MiniOrca with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KnutJaegersberg/Galpaca-30b-MiniOrca" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KnutJaegersberg/Galpaca-30b-MiniOrca", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KnutJaegersberg/Galpaca-30b-MiniOrca
- SGLang
How to use KnutJaegersberg/Galpaca-30b-MiniOrca 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 "KnutJaegersberg/Galpaca-30b-MiniOrca" \ --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": "KnutJaegersberg/Galpaca-30b-MiniOrca", "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 "KnutJaegersberg/Galpaca-30b-MiniOrca" \ --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": "KnutJaegersberg/Galpaca-30b-MiniOrca", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KnutJaegersberg/Galpaca-30b-MiniOrca with Docker Model Runner:
docker model run hf.co/KnutJaegersberg/Galpaca-30b-MiniOrca
Commit ·
b047f98
1
Parent(s): 00fd2e7
Upload 2 files
Browse files
model-00005-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5834227699222b2fef93387f65fb22db0d1243ea3f5f735929cee517fa8d1413
|
| 3 |
+
size 4933254576
|
model-00006-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6e8224c6c7ec9374730ea1458c4da47fca1179bd61a72c2703a184d183ddbbf
|
| 3 |
+
size 4933254576
|