None1145/Theresa
Viewer • Updated • 389 • 36 • 1
How to use None1145/ChatGLM3-6B-Theresa-GGML with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="None1145/ChatGLM3-6B-Theresa-GGML") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("None1145/ChatGLM3-6B-Theresa-GGML", device_map="auto")How to use None1145/ChatGLM3-6B-Theresa-GGML with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "None1145/ChatGLM3-6B-Theresa-GGML"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "None1145/ChatGLM3-6B-Theresa-GGML",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/None1145/ChatGLM3-6B-Theresa-GGML
How to use None1145/ChatGLM3-6B-Theresa-GGML with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "None1145/ChatGLM3-6B-Theresa-GGML" \
--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": "None1145/ChatGLM3-6B-Theresa-GGML",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "None1145/ChatGLM3-6B-Theresa-GGML" \
--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": "None1145/ChatGLM3-6B-Theresa-GGML",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use None1145/ChatGLM3-6B-Theresa-GGML with Docker Model Runner:
docker model run hf.co/None1145/ChatGLM3-6B-Theresa-GGML
Configuration Parsing Warning:Invalid JSON for config file config.json
These models are based on the audio training of Theresa from Arknights
git clone --recursive https://github.com/li-plus/chatglm.cpp.git && cd chatglm.cpp
cmake -B build
cmake --build build -j --config Release
./build/bin/main -m ChatGLM3-6B-Theresa-GGML-Q8_0.bin -p 你好 -s "请扮演特蕾西娅"
# 现在我们出去走走,好吗?