Text Generation
Transformers
Safetensors
Turkish
English
llama
unsloth
trl
reasoning
billingual
stem
conversational
text-generation-inference
Instructions to use RefinedNeuro/RN_TR_R2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RefinedNeuro/RN_TR_R2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RefinedNeuro/RN_TR_R2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("RefinedNeuro/RN_TR_R2") model = AutoModelForMultimodalLM.from_pretrained("RefinedNeuro/RN_TR_R2") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RefinedNeuro/RN_TR_R2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RefinedNeuro/RN_TR_R2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RefinedNeuro/RN_TR_R2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RefinedNeuro/RN_TR_R2
- SGLang
How to use RefinedNeuro/RN_TR_R2 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 "RefinedNeuro/RN_TR_R2" \ --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": "RefinedNeuro/RN_TR_R2", "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 "RefinedNeuro/RN_TR_R2" \ --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": "RefinedNeuro/RN_TR_R2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use RefinedNeuro/RN_TR_R2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RefinedNeuro/RN_TR_R2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RefinedNeuro/RN_TR_R2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RefinedNeuro/RN_TR_R2 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="RefinedNeuro/RN_TR_R2", max_seq_length=2048, ) - Docker Model Runner
How to use RefinedNeuro/RN_TR_R2 with Docker Model Runner:
docker model run hf.co/RefinedNeuro/RN_TR_R2
Update README.md
Browse files
README.md
CHANGED
|
@@ -138,51 +138,41 @@ answer_question("6 ve 2'nin çarpımı nedir?")
|
|
| 138 |
>
|
| 139 |
> **A:** <think>
|
| 140 |
|
| 141 |
-
1.
|
| 142 |
|
| 143 |
-
2.
|
| 144 |
|
| 145 |
f(x) = 3x⁴ - 2x³ + 5x - 7
|
| 146 |
|
| 147 |
-
3.
|
| 148 |
|
| 149 |
-
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
-
4.
|
| 152 |
-
|
| 153 |
-
f'(x) = d(3x⁴)/dx - d(2x³)/dx + d(5x)/dx - d(7)/dx
|
| 154 |
-
|
| 155 |
-
5. Öncelikle x'in türevini bulalım:
|
| 156 |
-
|
| 157 |
-
d(3x⁴)/dx = 4 * 3x³ (çünkü 4 * x^(3-1) = 4 * 3x³)
|
| 158 |
-
|
| 159 |
-
d(2x³)/dx = 3 * 2x² (çünkü 3 * x^(3-1) = 3 * 2x²)
|
| 160 |
-
|
| 161 |
-
d(5x)/dx = 5 (çünkü x'in türevi 1'dir)
|
| 162 |
-
|
| 163 |
-
d(7)/dx = 0 (çünkü sabit bir değerdir)
|
| 164 |
-
|
| 165 |
-
6. Şimdi fonksiyonun türevini bulmak için bu değerleri yerine koyalım:
|
| 166 |
-
|
| 167 |
-
f'(x) = 4 * 3x³ - 3 * 2x² + 5 - 0
|
| 168 |
|
| 169 |
f'(x) = 12x³ - 6x² + 5
|
| 170 |
|
| 171 |
-
|
| 172 |
|
| 173 |
-
f'(1) = 12
|
|
|
|
|
|
|
| 174 |
|
| 175 |
f'(1) = 12 - 6 + 5
|
| 176 |
|
| 177 |
f'(1) = 11
|
| 178 |
|
| 179 |
-
|
| 180 |
|
| 181 |
\boxed{11}
|
| 182 |
|
| 183 |
</think>
|
| 184 |
|
| 185 |
\boxed{11}
|
|
|
|
| 186 |
```
|
| 187 |
|
| 188 |
---
|
|
|
|
| 138 |
>
|
| 139 |
> **A:** <think>
|
| 140 |
|
| 141 |
+
1. Adım: f(x) = 3x⁴ - 2x³ + 5x - 7 fonksiyonunun türevini bulmak için, önce f(x)'nin türevini bulmamız gerekmektedir.
|
| 142 |
|
| 143 |
+
2. Adım: Türevi bulmak için fonksiyonu parçalara ayırarak analiz edeceğiz.
|
| 144 |
|
| 145 |
f(x) = 3x⁴ - 2x³ + 5x - 7
|
| 146 |
|
| 147 |
+
3. Adım: Türevi bulmak için her terimi ayrı ayrı türevini buluyoruz.
|
| 148 |
|
| 149 |
+
- 3x⁴: Türevi 12x³'dür.
|
| 150 |
+
- -2x³: Türevi -6x²'dir.
|
| 151 |
+
- 5x: Türevi 5'dir.
|
| 152 |
+
- -7: Türevi 0'dır (çünkü sabit bir sayıdır).
|
| 153 |
|
| 154 |
+
4. Adım: Türevi bulmak için elde edilen türevleri birleştiriyoruz.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
f'(x) = 12x³ - 6x² + 5
|
| 157 |
|
| 158 |
+
5. Adım: Şimdi x = 1 yerine koyarak f'(x)'nin türevini hesaplayacağız.
|
| 159 |
|
| 160 |
+
f'(1) = 12(1)³ - 6(1)² + 5
|
| 161 |
+
|
| 162 |
+
f'(1) = 12(1) - 6(1) + 5
|
| 163 |
|
| 164 |
f'(1) = 12 - 6 + 5
|
| 165 |
|
| 166 |
f'(1) = 11
|
| 167 |
|
| 168 |
+
6. Adım: x = 1 noktasındaki türevi 11 olarak bulduk.
|
| 169 |
|
| 170 |
\boxed{11}
|
| 171 |
|
| 172 |
</think>
|
| 173 |
|
| 174 |
\boxed{11}
|
| 175 |
+
|
| 176 |
```
|
| 177 |
|
| 178 |
---
|