Instructions to use Karroyan/MasterMInd-Dou-full-kl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Karroyan/MasterMInd-Dou-full-kl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Karroyan/MasterMInd-Dou-full-kl")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Karroyan/MasterMInd-Dou-full-kl") model = AutoModelForCausalLM.from_pretrained("Karroyan/MasterMInd-Dou-full-kl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Karroyan/MasterMInd-Dou-full-kl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Karroyan/MasterMInd-Dou-full-kl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Karroyan/MasterMInd-Dou-full-kl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Karroyan/MasterMInd-Dou-full-kl
- SGLang
How to use Karroyan/MasterMInd-Dou-full-kl 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 "Karroyan/MasterMInd-Dou-full-kl" \ --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": "Karroyan/MasterMInd-Dou-full-kl", "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 "Karroyan/MasterMInd-Dou-full-kl" \ --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": "Karroyan/MasterMInd-Dou-full-kl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Karroyan/MasterMInd-Dou-full-kl with Docker Model Runner:
docker model run hf.co/Karroyan/MasterMInd-Dou-full-kl
root commited on
Commit ·
13fcd2c
1
Parent(s): a33175e
add large models
Browse files- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- optimizer.pt +3 -0
model-00001-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bfc5e1f6c2ee3f07527bbacc77c5978cb0656d3143c8ae1a8358a08e12e89fd
|
| 3 |
+
size 4938985352
|
model-00002-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:055813f9c42a3bcce65176d84fd8b18eafba0b42bea9f4060870eb5336979ac6
|
| 3 |
+
size 4947390880
|
model-00003-of-00003.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95776d81f8b29b5167175bd16f90c1ccb91d8b856f2d254424c9a7fd643cf3bd
|
| 3 |
+
size 3590488816
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f7ef4b0238ed201d98ac79e3cc7c69005b20b22ce36b75e47c302fd6dbbb930
|
| 3 |
+
size 26953916914
|