Upload model card
Browse files
README.md
CHANGED
|
@@ -1,56 +1,14 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- fine-tuned
|
| 5 |
-
- text-generation
|
| 6 |
-
- qwen
|
| 7 |
-
# Add your base model tag e.g., - qwen3-1.7b
|
| 8 |
-
- oneplusaries2
|
| 9 |
-
# Add task-specific tags:
|
| 10 |
-
# - math-reasoning
|
| 11 |
-
# - tree-of-thoughts
|
| 12 |
-
# - custom-pipeline
|
| 13 |
-
pipeline_tag: text-generation
|
| 14 |
-
---
|
| 15 |
|
| 16 |
-
#
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
|
| 21 |
-
## Fine-
|
| 22 |
-
- **
|
| 23 |
-
- **
|
| 24 |
-
- The SFT/generated dataset associated with this model (if pushed) might be found at: [huggingface.co/datasets/ziadrone/dataset-for-oneplusaries2](https://huggingface.co/datasets/ziadrone/dataset-for-oneplusaries2)
|
| 25 |
-
- **Training Objective**: To improve performance on tasks requiring step-by-step reasoning and to adhere to specific structured output formats (e.g., involving `<reasoning>` and `<answer>` tags).
|
| 26 |
|
| 27 |
-
##
|
| 28 |
-
This model is the result of an experimental fine-tuning process. Its performance should be carefully evaluated for your specific use case. It is primarily aimed at tasks that benefit from detailed, structured reasoning.
|
| 29 |
-
|
| 30 |
-
## How to Use
|
| 31 |
-
```python
|
| 32 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 33 |
-
|
| 34 |
-
model_id = "ziadrone/oneplusaries2"
|
| 35 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 36 |
-
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 37 |
-
|
| 38 |
-
# To use with a GPU:
|
| 39 |
-
# model.to("cuda")
|
| 40 |
-
|
| 41 |
-
# Example prompt structure (adapt to your model's training):
|
| 42 |
-
# SYSTEM_PROMPT = "Your system prompt here..." # The system prompt used during training
|
| 43 |
-
# user_problem = "Your problem statement here..."
|
| 44 |
-
# messages = [
|
| 45 |
-
# {"role": "system", "content": SYSTEM_PROMPT},
|
| 46 |
-
# {"role": "user", "content": user_problem}
|
| 47 |
-
# ]
|
| 48 |
-
# input_text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 49 |
-
# inputs = tokenizer(input_text, return_tensors="pt") # .to("cuda" if using GPU)
|
| 50 |
-
|
| 51 |
-
# outputs = model.generate(**inputs, max_new_tokens=512, pad_token_id=tokenizer.pad_token_id or tokenizer.eos_token_id)
|
| 52 |
-
# response_text = tokenizer.decode(outputs, skip_special_tokens=True)
|
| 53 |
-
# # Note: The response_text might include the prompt depending on generation settings.
|
| 54 |
-
# # You might need to slice it to get only the generated part.
|
| 55 |
-
# # generated_output = response_text[len(input_text):] if response_text.startswith(input_text) else response_text
|
| 56 |
-
# print(response_text) ```
|
|
|
|
| 1 |
+
# ToT-Reasoner-Qwen3-1.7B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
## Model Description
|
| 4 |
+
Fine-tuned `ziadrone/oneplusaries1` using Supervised Fine-Tuning (SFT) on `open-r1/Mixture-of-Thoughts` (math split). Optimized for mathematical reasoning.
|
| 5 |
|
| 6 |
+
## Training Data
|
| 7 |
+
- **Source**: `open-r1/Mixture-of-Thoughts` (math split, up to 50 samples).
|
| 8 |
+
- **Format**: Prompts with `<reasoning>...</reasoning><answer>...</answer>` structure.
|
| 9 |
|
| 10 |
+
## Fine-Tuning Process
|
| 11 |
+
- **Method**: SFT with learning rate=1e-5, 3 epochs, batch size=1.
|
| 12 |
+
- **Setup**: Google Colab Pro with T4 GPU.
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|