TechxGenus / Mini-Jamba

huggingface.co
Total runs: 150
24-hour runs: 0
7-day runs: 24
30-day runs: 26
Model's Last Updated: April 02 2024
text-generation

Introduction of Mini-Jamba

Model Details of Mini-Jamba

Mini-Jamba

[ Experimental Version ] We initialized the model according to Jamba , but with much smaller parameters. It was then trained using about 1B of python code, and has the simplest python code generation capabilities.

Usage

Here give some examples of how to use our model:

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

prompt = '''def min(arr):
    """
    Returns the minimum value from the list `arr`.
    
    Parameters:
    - arr (list): A list of numerical values.
    
    Returns:
    - The minimum value in `arr`.
    """
'''

tokenizer = AutoTokenizer.from_pretrained(
    "TechxGenus/Mini-Jamba",
    trust_remote_code=True,
)
tokenizer.pad_token = tokenizer.eos_token
model = AutoModelForCausalLM.from_pretrained(
    "TechxGenus/Mini-Jamba",
    torch_dtype=torch.float16,
    device_map="auto",
    trust_remote_code=True,
)
inputs = tokenizer.encode(prompt, return_tensors="pt")
outputs = model.generate(
    input_ids=inputs.to(model.device),
    max_new_tokens=64,
    do_sample=False,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Note

Model may sometimes make errors, produce misleading contents, or struggle to manage tasks that are not related to coding. It has undergone very limited testing. Additional safety testing should be performed before any real-world deployments.

Runs of TechxGenus Mini-Jamba on huggingface.co

150
Total runs
0
24-hour runs
25
3-day runs
24
7-day runs
26
30-day runs

More Information About Mini-Jamba huggingface.co Model

More Mini-Jamba license Visit here:

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

Mini-Jamba huggingface.co

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

TechxGenus Mini-Jamba online free

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

TechxGenus Mini-Jamba online free url in huggingface.co:

https://huggingface.co/TechxGenus/Mini-Jamba

Mini-Jamba install

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

Mini-Jamba install url in huggingface.co:

https://huggingface.co/TechxGenus/Mini-Jamba

Url of Mini-Jamba

Provider of Mini-Jamba huggingface.co

TechxGenus
ORGANIZATIONS

Other API from TechxGenus