[
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
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.
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:
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.