aloobun / minini-140m-it

huggingface.co
Total runs: 21
24-hour runs: 0
7-day runs: 0
30-day runs: 3
Model's Last Updated: December 15 2025
text-generation

Introduction of minini-140m-it

Model Details of minini-140m-it

50c51e02a205b44c3449fc128400ff20-2052545627

In this experiment, i finetuned minini-140m-base with training samples drawn from the FineTome-100k , and OpenMathReasoning (10k samples only). I've used the SM3 optimizer w/ cosine scheduler, and a lr of 2e-5 .

I've release this initial experimental checkpoint as a foundation for further exploration and I plan to conduct more experiments with different optimization strategies( https://github.com/HomebrewML/HeavyBall ) and well curated datasets, and will update the model weights accordingly.

from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer, StoppingCriteria
import torch

class MyStoppingCriteria(StoppingCriteria):
    def __init__(self, target_sequence, prompt):
        self.target_sequence = target_sequence
        self.prompt = prompt

    def __call__(self, input_ids, scores, **kwargs):
        generated_text = tokenizer.decode(input_ids[0])
        generated_text = generated_text.replace(self.prompt, '')
        if self.target_sequence in generated_text:
            return True 
        return False 

    def __len__(self):
        return 1

    def __iter__(self):
        yield self

modelpath = "aloobun/minini-140m-chat"
model = AutoModelForCausalLM.from_pretrained(
    modelpath,
    torch_dtype=torch.bfloat16,
    device_map="cuda",
    trust_remote_code=True,       
)
tokenizer = AutoTokenizer.from_pretrained(
    modelpath,
    trust_remote_code=True,      
    use_fast=False,
)

messages = [
    {"role": "user", "content": "what is life?"}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,
)

streamer = TextStreamer(tokenizer, skip_prompt=True)

_ = model.generate(
    **tokenizer(text, return_tensors="pt").to("cuda"),
    max_new_tokens=256,
    temperature=0.8,
    top_p=0.8,
    top_k=20,
    streamer=streamer,
    stopping_criteria=MyStoppingCriteria("<|im_end|>", text),
    pad_token_id=tokenizer.eos_token_id
)

Runs of aloobun minini-140m-it on huggingface.co

21
Total runs
0
24-hour runs
1
3-day runs
0
7-day runs
3
30-day runs

More Information About minini-140m-it huggingface.co Model

More minini-140m-it license Visit here:

https://choosealicense.com/licenses/mit

minini-140m-it huggingface.co

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

minini-140m-it huggingface.co Url

https://huggingface.co/aloobun/minini-140m-it

aloobun minini-140m-it online free

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

aloobun minini-140m-it online free url in huggingface.co:

https://huggingface.co/aloobun/minini-140m-it

minini-140m-it install

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

minini-140m-it install url in huggingface.co:

https://huggingface.co/aloobun/minini-140m-it

Url of minini-140m-it

minini-140m-it huggingface.co Url

Provider of minini-140m-it huggingface.co

aloobun
ORGANIZATIONS

Other API from aloobun

huggingface.co

Total runs: 115
Run Growth: 47
Growth Rate: 41.23%
Updated:May 16 2024
huggingface.co

Total runs: 24
Run Growth: 13
Growth Rate: 54.17%
Updated:November 30 2023
huggingface.co

Total runs: 19
Run Growth: -10
Growth Rate: -55.56%
Updated:December 14 2024
huggingface.co

Total runs: 14
Run Growth: 4
Growth Rate: 28.57%
Updated:May 03 2024
huggingface.co

Total runs: 13
Run Growth: 2
Growth Rate: 15.38%
Updated:November 30 2023
huggingface.co

Total runs: 11
Run Growth: 11
Growth Rate: 100.00%
Updated:November 27 2025
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 21 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2025