g-ronimo / mamba-1.4b-OA

huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: 1
30-day runs: 5
Model's Last Updated: December 11 2023
text-generation

Introduction of mamba-1.4b-OA

Model Details of mamba-1.4b-OA

this is a test, not a useful SOTA bot

inference:

import torch
from transformers import AutoTokenizer
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel

modelpath="g-ronimo/mamba-1.4b-OA"

model = MambaLMHeadModel.from_pretrained(
    modelpath,    
    dtype=torch.bfloat16,
    device="cuda"
)

tokenizer = AutoTokenizer.from_pretrained(modelpath) 

question="Why am I so tired?"

template="<|im_start|>user\n{q}\n<|im_end|>\n<|im_start|>assistant"
prompt=template.format(q=question)    
prompt_tokenized=tokenizer(prompt, return_tensors="pt").to("cuda")["input_ids"]
output_tokenized = model.generate(
    input_ids=prompt_tokenized, 
    max_length=len(prompt_tokenized[0])+100,
    cg=True,
    output_scores=True,
    enable_timing=False,
    temperature=0.7,
    top_k=40,
    top_p=0.1,
    )
answer=tokenizer.decode(output_tokenized[0])

print(answer)

example conversation:

<|im_start|>user
hello
<|im_end|>
<|im_start|>assistant
Hello, how can I help you today?
<|im_end|>
<|im_start|>user
who are you?
<|im_end|>
<|im_start|>assistant
I am Open Assistant, a chatbot designed to assist you with various tasks. Is there anything in particular that I can help you with today?
<|im_end|>
<|im_start|>user
tell me about quantum mechanics
<|im_end|>
<|im_start|>assistant
Quantum mechanics is a branch of physics that describes the behavior of matter and energy at the atomic and subatomic level. It is based on the principles of quantum theory, which provides a framework for understanding the behavior of particles at the smallest scales.

In quantum mechanics, particles are described by wave functions that represent the probability of finding a particle at a specific location. These wave functions can be used to predict the behavior of particles, and they can be modified using concepts such as superposition and entanglement.

Quantum mechanics also addresses the nature of space and time, as it suggests that these concepts are merely human constructs that arise from our perception of the world. According to quantum mechanics, space and time are not objective entities, but rather subjective constructs that arise from the way we perceive particles.

Quantum mechanics has many applications in fields such as physics, chemistry, and materials science, and it has led to the development of new technologies, such as quantum computing and quantum communication.
<|im_end|>

Runs of g-ronimo mamba-1.4b-OA on huggingface.co

14
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
5
30-day runs

More Information About mamba-1.4b-OA huggingface.co Model

More mamba-1.4b-OA license Visit here:

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

mamba-1.4b-OA huggingface.co

mamba-1.4b-OA huggingface.co is an AI model on huggingface.co that provides mamba-1.4b-OA's model effect (), which can be used instantly with this g-ronimo mamba-1.4b-OA model. huggingface.co supports a free trial of the mamba-1.4b-OA model, and also provides paid use of the mamba-1.4b-OA. Support call mamba-1.4b-OA model through api, including Node.js, Python, http.

mamba-1.4b-OA huggingface.co Url

https://huggingface.co/g-ronimo/mamba-1.4b-OA

g-ronimo mamba-1.4b-OA online free

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

g-ronimo mamba-1.4b-OA online free url in huggingface.co:

https://huggingface.co/g-ronimo/mamba-1.4b-OA

mamba-1.4b-OA install

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

mamba-1.4b-OA install url in huggingface.co:

https://huggingface.co/g-ronimo/mamba-1.4b-OA

Url of mamba-1.4b-OA

mamba-1.4b-OA huggingface.co Url

Provider of mamba-1.4b-OA huggingface.co

g-ronimo
ORGANIZATIONS

Other API from g-ronimo

huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:January 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 03 2026
huggingface.co

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