yasserrmd / SciReason-LFM2-2.6B

huggingface.co
Total runs: 17
24-hour runs: 0
7-day runs: 1
30-day runs: 10
Model's Last Updated: September 25 2025
text-generation

Introduction of SciReason-LFM2-2.6B

Model Details of SciReason-LFM2-2.6B

SciReason-LFM2-2.6B

License: Apache 2.0 Dataset Base Model Fine-tuned with Author


Model Overview

SciReason-LFM2-2.6B is a fine-tuned version of LiquidAI/LFM2-2.6B , trained with Unsloth on the OpenScienceReasoning-2 dataset.
The fine-tuning enhances the base model’s ability to handle multi-step scientific reasoning and produce coherent chain-of-thought explanations .


Training Configuration
  • Framework : Unsloth
  • Dataset : nvidia/OpenScienceReasoning-2
  • Examples : ~11,000
  • Epochs : 1
  • Total Steps : 1,375
  • Batch size per device : 2
  • Gradient Accumulation Steps : 4
  • Effective Batch Size : 8
  • Trainable Parameters : ~20M (LoRA / PEFT with Unsloth smart offloading)
  • Optimizer : AdamW
  • Learning Rate : 2e-4
  • Weight Decay : 0.01
  • LR Scheduler : cosine with warmup
  • Hardware : Single GPU (Unsloth offloading enabled)

Usage
from transformers import AutoModelForCausalLM, AutoTokenizer

# Load model and tokenizer
model_id = "yasserrmd/SciReason-LFM2-2.6B"
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype="bfloat16",
#    attn_implementation="flash_attention_2" <- uncomment on compatible GPU
)
tokenizer = AutoTokenizer.from_pretrained(model_id)

# Generate answer
prompt = """	
Solve the following problem. Make sure to put the answer (and only answer) inside \boxed{}.

Based on analysis of multinational aeromedical databases (e.g., EASA's EMPR, FAA's CAMI database, and military longitudinal studies), which statement accurately characterizes a fundamental limitation in definitively establishing cause-and-effect relationships for cardiovascular morbidity trends among commercial aircrew?

A: Stratified sampling protocols universally eliminate survivorship bias
B: Retroactive harmonization of biochemical markers across jurisdictions enables precise meta-analysis
C: Inability to fully adjust for dominant confounding variables (e.g., socioeconomic status, undisclosed supplement use)
D: Cohort studies consistently show declining age-adjusted myocardial infarction rates compared to the general population
E: Mandatory polysomnography data provides complete correction for sleep disorder comorbidities
F: Radiation dose metrics exhibit a linear correlation with arrhythmia incidence in jet aircraft pilots
G: Genome-wide association studies have identified fully penetrant monogenic risk variants specific to aviators
H: Continuous blood pressure monitoring during all flight phases yields statistically significant longitudinal datasets
I: Pharmacokinetic interactions between hypoxia and statins are conclusively established in CRF models
J: Regulatory divergence causes morbidity rates to universally decline across all regions after 2018"""
input_ids = tokenizer.apply_chat_template(
    [{
    "role":"system",
    "content":""" 
    You are a reasoning assistant.

When solving problems:
- Always place your reasoning inside think tags.
- Think in structured steps, but keep it concise (3–4 short steps maximum).
- Avoid repeating yourself or giving unnecessary background.
- Use bullet points or brief numbered steps for clarity inside think tag.
- After think end tag, provide only the final answer clearly and directly.
- Do not include reasoning outside of the think tags.


    """
},
        {"role": "user", "content": prompt}],
    add_generation_prompt=True,
    return_tensors="pt",
    tokenize=True,
).to(model.device)

output = model.generate(
    input_ids,
    do_sample=True,
    temperature=0.3,
    min_p=0.15,
    repetition_penalty=1.05,
    max_new_tokens=1024,
)

print(tokenizer.decode(output[0], skip_special_tokens=False))

# <|startoftext|><|im_start|>user
# What is C. elegans?<|im_end|>
# <|im_start|>assistant
# C. elegans, also known as Caenorhabditis elegans, is a small, free-living
# nematode worm (roundworm) that belongs to the phylum Nematoda.

Intended Use

This model is designed for:

  • Scientific reasoning tasks
  • Educational Q&A
  • Step-by-step logical problem solving

⚠️ Disclaimer: Not intended for clinical or legal decision-making.


License

Apache-2.0 License. See LICENSE .


Acknowledgements

Runs of yasserrmd SciReason-LFM2-2.6B on huggingface.co

17
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
10
30-day runs

More Information About SciReason-LFM2-2.6B huggingface.co Model

More SciReason-LFM2-2.6B license Visit here:

https://choosealicense.com/licenses/apache-2.0

SciReason-LFM2-2.6B huggingface.co

SciReason-LFM2-2.6B huggingface.co is an AI model on huggingface.co that provides SciReason-LFM2-2.6B's model effect (), which can be used instantly with this yasserrmd SciReason-LFM2-2.6B model. huggingface.co supports a free trial of the SciReason-LFM2-2.6B model, and also provides paid use of the SciReason-LFM2-2.6B. Support call SciReason-LFM2-2.6B model through api, including Node.js, Python, http.

SciReason-LFM2-2.6B huggingface.co Url

https://huggingface.co/yasserrmd/SciReason-LFM2-2.6B

yasserrmd SciReason-LFM2-2.6B online free

SciReason-LFM2-2.6B huggingface.co is an online trial and call api platform, which integrates SciReason-LFM2-2.6B's modeling effects, including api services, and provides a free online trial of SciReason-LFM2-2.6B, you can try SciReason-LFM2-2.6B online for free by clicking the link below.

yasserrmd SciReason-LFM2-2.6B online free url in huggingface.co:

https://huggingface.co/yasserrmd/SciReason-LFM2-2.6B

SciReason-LFM2-2.6B install

SciReason-LFM2-2.6B is an open source model from GitHub that offers a free installation service, and any user can find SciReason-LFM2-2.6B on GitHub to install. At the same time, huggingface.co provides the effect of SciReason-LFM2-2.6B install, users can directly use SciReason-LFM2-2.6B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SciReason-LFM2-2.6B install url in huggingface.co:

https://huggingface.co/yasserrmd/SciReason-LFM2-2.6B

Url of SciReason-LFM2-2.6B

SciReason-LFM2-2.6B huggingface.co Url

Provider of SciReason-LFM2-2.6B huggingface.co

yasserrmd
ORGANIZATIONS

Other API from yasserrmd

huggingface.co

Total runs: 28
Run Growth: 3
Growth Rate: 10.71%
Updated:October 19 2025