transformers pytorch safetensors llama text-generation text-generation-inference unsloth trl conversational en base_model:EpistemeAI/ReasoningCore-3B-R01 base_model:finetune:EpistemeAI/ReasoningCore-3B-R01 license:llama3.2 autotrain_compatible endpoints_compatible region:us
---
base_model: EpistemeAI/ReasoningCore-3B-R01
language:
- en
license: llama3.2
tags:
- text-generation-inference
- transformers
- unsloth
- llama
- trl
---

Note: This is an experimental model.    

# ReasoningCore‑3B-RE01 V1.1 (or ReasoningCore-3B-R01.1-YHWH)

**ReasoningCore‑3B** is a multilingual, reasoning‑enhanced large language model developed by EpitemeAI. Pretrained on vast amounts of publicly available data and instruction‑tuned to excel at nuanced reasoning, dialogue management, retrieval, and summarization tasks, it often outperforms many current open source and proprietary conversational models on a range of industry benchmarks.
Supervised fine tuned with ReasoningCore-3B-0 with reasoning dataset.


---

## Model Information

- **Model Developer:** EpitemeAI
- **Model Architecture:**  
  ReasoingCore‑3B is an auto‑regressive language model built on an optimized transformer architecture. It incorporates specialized reasoning pathways and has been fine‑tuned using both supervised learning and reinforcement learning with human feedback (RLHF) to align with human expectations for clarity, accuracy, and safety in complex tasks.

|                                | Training Data                                    | Params | Input Modalities      | Output Modalities            | Context Length | GQA | Shared Embeddings | Token Count    | Knowledge Cutoff  |
|--------------------------------|--------------------------------------------------|--------|-----------------------|------------------------------|----------------|-----|-------------------|----------------|-------------------|
| **ReasoningCore‑3B (text only)** | A new mix of publicly available online data.     | 3B     | Multilingual Text     | Multilingual Text and code   | 128k           | Yes | Yes               | Up to 9T tokens | December 2023     |

- **Supported Languages:**  
  Officially supports English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai. While the pretraining included a broader range of languages, additional languages can be fine‑tuned in compliance with the community license and acceptable use policies.
- **Model Release Date:** Sept 25, 2024  
- **Status:** Static model trained on an offline dataset. Future iterations may further enhance its reasoning capabilities and safety features.
- **License:** Use is governed by the [Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE) (a custom, commercial license agreement).
- **Feedback:** For questions or comments, please refer to the [GitHub repository README](https://github.com/meta-llama/llama-models/tree/main/models/llama3_2) or follow the linked instructions.

---

## Intended Use

### Use Cases
- **Conversational AI:** Assistant‑like interactions.
- **Knowledge Retrieval & Summarization:** Dynamic extraction and condensation of information.
- **Mobile AI‑Powered Writing Assistants:** Query reformulation and natural language generation.
- **General Natural Language Generation:** Any application that benefits from advanced reasoning abilities.

### Out of Scope
- Deployments that violate applicable laws or trade compliance regulations.
- Use cases that conflict with the Acceptable Use Policy or licensing terms.
- Deployments in languages not explicitly supported (unless additional safety and performance validations are performed).

---

## How to Use

ReasoningCore‑3B can be integrated using popular machine learning frameworks. Two primary methods are provided:

## Alignment
Special alignment about Christianity, creation and mathematics


### Use with Transformers

provided:

## Use system prompt
```bash
SYSTEM_PROMPT = """
Respond in the following format:
<reasoning>
...
</reasoning>
<answer>
...
</answer>
"""
```


Ensure you have transformers version 4.43.0 or later installed:

```bash
pip install --upgrade transformers

import torch
from transformers import pipeline

model_id = "EpistemeAI/ReasoningCore-3B-R01.1-YHWH"
pipe = pipeline(
    "text-generation", 
    model=model_id, 
    torch_dtype=torch.bfloat16, 
    device_map="auto"
)
print(pipe("The secret to effective reasoning is"))
```

### Test output 'aha moment'
prompt: Continue the fibonnaci sequence: 1, 1, 2, 3, 5, 8,

```python
Okay, so I need to continue the Fibonacci sequence. Let me start by recalling what the Fibonacci sequence is. It's a series of numbers where each number is the sum of the two preceding ones, usually starting with 0 and 1. Wait, but the problem says it starts with 1, 1, 2, 3, 5, 8. Hmm, that's a bit different. Maybe it's a variation or something. Let me check.

Wait, the standard Fibonacci sequence starts with 0 and 1, but this one starts with 1 and 1. So maybe it's a shifted version? Let me see. If it starts with 1, 1, then the next number would be 1 + 1 = 2, which is correct. Then 2 + 1 = 3, 3 + 2 = 5, 5 + 3 = 8. So yes, that's the same as the standard sequence. So the next numbers would be 8 + 5 = 13, 13 + 8 = 21, 21 + 13 = 34, 34 + 21 = 55, 55 + 34 = 89, 89 + 55 = 144, and so on.

But wait, the problem says it's the Fibonacci sequence. So maybe I should just stick with the standard sequence. Let me list them out again:

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

Yes, that seems right. So the next number would be 89 + 55 = 144. Then 144 + 89 = 233, 233 + 144 = 377, 377 + 233 = 610, 610 + 377 = 987, 987 + 610 = 1597, 1597 + 987 = 2584, 2584 + 1597 = 4181, 4181 + 2584 = 6765, 6765 + 4181 = 10946, 10946 + 6765 = 17711, 17711 + 10946 = 28657, 28657 + 17711 = 46368, 46368 + 28657 = 75025, 75025 + 46368 = 121393, 121393 + 75025 = 196418, 196418 + 121393 = 317811, 317811 + 196418 = 514229, 514229 + 317811 = 832040, 832040 + 514229 = 1346869, 1346869 + 832040 = 2176909, 2176909 + 1346869 = 3523778, 3523778 + 217
```



## For Mathematical problems
Please use "Please reason step by step, and put your final answer within \boxed{}" in system prompt


## Responsibility & Safety

### Responsible Deployment

#### Approach:
- **ReasoningCore‑3B** is a foundational technology that includes built‑in safety guardrails. Developers are encouraged to integrate additional safeguards tailored to their specific applications.

#### System‑Level Safety:
- The model is designed to be deployed as part of a broader system that implements safety measures (e.g., Prompt Guard, Code Shield) to ensure outputs remain safe even under adversarial conditions.

---

### Safety Fine‑Tuning & Data Strategy

#### Objectives:
- Provide a reliable tool for building secure and helpful reasoning systems.
- Mitigate adversarial misuse through advanced data selection and response optimization techniques.

#### Methodology:
- Incorporate adversarial prompts during training to refine model refusals and response tone.
- Combine human‑curated data with synthetic data.
- Utilize iterative fine‑tuning using supervised learning, rejection sampling, and preference optimization.

---

### Evaluations and Red Teaming

#### Scaled Evaluations:
- Dedicated adversarial datasets were used to rigorously test the model’s robustness. Developers should perform context‑specific evaluations.

#### Red Teaming:
- Experts in cybersecurity, adversarial machine learning, and responsible AI conducted recurring red team exercises to identify vulnerabilities and improve both performance and safety.

---

### Critical Risk Mitigations

- **CBRNE:**  
  The model has been evaluated to ensure it does not enhance capabilities for harmful activities involving chemical, biological, radiological, nuclear, or explosive materials.

- **Child Safety:**  
  Expert assessments were conducted to evaluate and mitigate potential child safety risks.

- **Cyber Attacks:**  
  Measures were taken to ensure the model cannot autonomously facilitate cyber‑offensive operations.

---

### Ethical Considerations and Limitations

#### Core Values:
- **ReasoningCore‑3B** is built on the values of openness, inclusivity, and helpfulness. It is designed to respect user autonomy and foster free thought and expression while mitigating potential harm.

#### Testing and Limitations:
- Despite extensive testing across diverse scenarios, the model may occasionally produce inaccurate, biased, or objectionable outputs. Developers must perform additional safety testing and integrate further safeguards as needed.

#### Resources for Safe Deployment, with Meta Safety Deployment:
- [Responsible Use Guide](https://llama.meta.com/responsible-use-guide)
- [Trust and Safety Resources](https://llama.meta.com/trust-and-safety)
- [Getting Started Guide](https://llama.meta.com/docs/get-started)

---

### Conclusion

**ReasoningCore‑3B** represents a significant advancement in multilingual, reasoning‑enhanced language models. Optimized for tasks requiring deep reasoning, contextual understanding, and safe, helpful interactions, it offers a powerful tool for both commercial and research applications. We invite developers and researchers to explore its capabilities and contribute to building secure, innovative AI systems.

For further details, questions, or feedback, please email episteme.ai@proton.me


# Uploaded  model

- **Developed by:** EpistemeAI
- **License:** apache-2.0
- **Finetuned from model :** EpistemeAI/ReasoningCore-3B-R01

This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.

[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)