Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
trl
sft
reasoning
llama-3
conversational
Eval Results (legacy)
Instructions to use lunahr/thea-rp-3b-25r with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lunahr/thea-rp-3b-25r with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lunahr/thea-rp-3b-25r") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lunahr/thea-rp-3b-25r") model = AutoModelForCausalLM.from_pretrained("lunahr/thea-rp-3b-25r", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use lunahr/thea-rp-3b-25r with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lunahr/thea-rp-3b-25r" # 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-rp-3b-25r", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lunahr/thea-rp-3b-25r
- SGLang
How to use lunahr/thea-rp-3b-25r 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 "lunahr/thea-rp-3b-25r" \ --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-rp-3b-25r", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "lunahr/thea-rp-3b-25r" \ --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-rp-3b-25r", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use lunahr/thea-rp-3b-25r with Docker Model Runner:
docker model run hf.co/lunahr/thea-rp-3b-25r
updated usernames
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ tags:
|
|
| 13 |
base_model: SicariusSicariiStuff/Impish_LLAMA_3B
|
| 14 |
datasets:
|
| 15 |
- KingNish/reasoning-base-20k
|
| 16 |
-
-
|
| 17 |
model-index:
|
| 18 |
- name: thea-rp-3b-25r
|
| 19 |
results:
|
|
@@ -30,7 +30,7 @@ model-index:
|
|
| 30 |
value: 65.78
|
| 31 |
name: strict accuracy
|
| 32 |
source:
|
| 33 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 34 |
name: Open LLM Leaderboard
|
| 35 |
- task:
|
| 36 |
type: text-generation
|
|
@@ -45,7 +45,7 @@ model-index:
|
|
| 45 |
value: 20.01
|
| 46 |
name: normalized accuracy
|
| 47 |
source:
|
| 48 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 49 |
name: Open LLM Leaderboard
|
| 50 |
- task:
|
| 51 |
type: text-generation
|
|
@@ -60,7 +60,7 @@ model-index:
|
|
| 60 |
value: 11.71
|
| 61 |
name: exact match
|
| 62 |
source:
|
| 63 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 64 |
name: Open LLM Leaderboard
|
| 65 |
- task:
|
| 66 |
type: text-generation
|
|
@@ -75,7 +75,7 @@ model-index:
|
|
| 75 |
value: 3.24
|
| 76 |
name: acc_norm
|
| 77 |
source:
|
| 78 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 79 |
name: Open LLM Leaderboard
|
| 80 |
- task:
|
| 81 |
type: text-generation
|
|
@@ -90,7 +90,7 @@ model-index:
|
|
| 90 |
value: 5.93
|
| 91 |
name: acc_norm
|
| 92 |
source:
|
| 93 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 94 |
name: Open LLM Leaderboard
|
| 95 |
- task:
|
| 96 |
type: text-generation
|
|
@@ -107,7 +107,7 @@ model-index:
|
|
| 107 |
value: 22.89
|
| 108 |
name: accuracy
|
| 109 |
source:
|
| 110 |
-
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=
|
| 111 |
name: Open LLM Leaderboard
|
| 112 |
---
|
| 113 |
|
|
@@ -125,7 +125,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 125 |
MAX_REASONING_TOKENS = 1024
|
| 126 |
MAX_RESPONSE_TOKENS = 512
|
| 127 |
|
| 128 |
-
model_name = "
|
| 129 |
|
| 130 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
|
| 131 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
@@ -153,7 +153,7 @@ response_output = tokenizer.decode(response_ids[0, response_inputs.input_ids.sha
|
|
| 153 |
print("ANSWER: " + response_output)
|
| 154 |
```
|
| 155 |
|
| 156 |
-
- **Trained by:** [Piotr Zalewski](https://huggingface.co/
|
| 157 |
- **License:** llama3.2
|
| 158 |
- **Finetuned from model:** [SicariusSicariiStuff/Impish_LLAMA_3B](https://huggingface.co/SicariusSicariiStuff/Impish_LLAMA_3B)
|
| 159 |
- **Dataset used:** [KingNish/reasoning-base-20k](https://huggingface.co/datasets/KingNish/reasoning-base-20k)
|
|
|
|
| 13 |
base_model: SicariusSicariiStuff/Impish_LLAMA_3B
|
| 14 |
datasets:
|
| 15 |
- KingNish/reasoning-base-20k
|
| 16 |
+
- lunahr/thea-name-overrides
|
| 17 |
model-index:
|
| 18 |
- name: thea-rp-3b-25r
|
| 19 |
results:
|
|
|
|
| 30 |
value: 65.78
|
| 31 |
name: strict accuracy
|
| 32 |
source:
|
| 33 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 34 |
name: Open LLM Leaderboard
|
| 35 |
- task:
|
| 36 |
type: text-generation
|
|
|
|
| 45 |
value: 20.01
|
| 46 |
name: normalized accuracy
|
| 47 |
source:
|
| 48 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 49 |
name: Open LLM Leaderboard
|
| 50 |
- task:
|
| 51 |
type: text-generation
|
|
|
|
| 60 |
value: 11.71
|
| 61 |
name: exact match
|
| 62 |
source:
|
| 63 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 64 |
name: Open LLM Leaderboard
|
| 65 |
- task:
|
| 66 |
type: text-generation
|
|
|
|
| 75 |
value: 3.24
|
| 76 |
name: acc_norm
|
| 77 |
source:
|
| 78 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 79 |
name: Open LLM Leaderboard
|
| 80 |
- task:
|
| 81 |
type: text-generation
|
|
|
|
| 90 |
value: 5.93
|
| 91 |
name: acc_norm
|
| 92 |
source:
|
| 93 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 94 |
name: Open LLM Leaderboard
|
| 95 |
- task:
|
| 96 |
type: text-generation
|
|
|
|
| 107 |
value: 22.89
|
| 108 |
name: accuracy
|
| 109 |
source:
|
| 110 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=lunahr/thea-rp-3b-25r
|
| 111 |
name: Open LLM Leaderboard
|
| 112 |
---
|
| 113 |
|
|
|
|
| 125 |
MAX_REASONING_TOKENS = 1024
|
| 126 |
MAX_RESPONSE_TOKENS = 512
|
| 127 |
|
| 128 |
+
model_name = "lunahr/thea-rp-3b-25r"
|
| 129 |
|
| 130 |
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
|
| 131 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
|
| 153 |
print("ANSWER: " + response_output)
|
| 154 |
```
|
| 155 |
|
| 156 |
+
- **Trained by:** [Piotr Zalewski](https://huggingface.co/lunahr)
|
| 157 |
- **License:** llama3.2
|
| 158 |
- **Finetuned from model:** [SicariusSicariiStuff/Impish_LLAMA_3B](https://huggingface.co/SicariusSicariiStuff/Impish_LLAMA_3B)
|
| 159 |
- **Dataset used:** [KingNish/reasoning-base-20k](https://huggingface.co/datasets/KingNish/reasoning-base-20k)
|