KingNish/reasoning-base-20k
Viewer • Updated • 19.9k • 529 • 231
How to use lunahr/thea-pro-2b-100r with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="lunahr/thea-pro-2b-100r", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("lunahr/thea-pro-2b-100r", trust_remote_code=True, dtype="auto")How to use lunahr/thea-pro-2b-100r with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "lunahr/thea-pro-2b-100r"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lunahr/thea-pro-2b-100r",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/lunahr/thea-pro-2b-100r
How to use lunahr/thea-pro-2b-100r with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "lunahr/thea-pro-2b-100r" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lunahr/thea-pro-2b-100r",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "lunahr/thea-pro-2b-100r" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "lunahr/thea-pro-2b-100r",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use lunahr/thea-pro-2b-100r with Docker Model Runner:
docker model run hf.co/lunahr/thea-pro-2b-100r
An uncensored reasoning EXAONE 3.5 model trained on reasoning data. Now with a full epoch!
It has been trained using improved training code, and gives an improved performance. I'm uncertain whether it currently works. Check for a new version of Thea Pro later.
This Llama model was trained faster than Unsloth using custom training code.
Visit https://www.kaggle.com/code/piotr25691/distributed-hf-training-with-2xt4 to find out how you can finetune your models using BOTH of the Kaggle provided GPUs.