[
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-v2",
trust_remote_code=True,
)
tokenizer.pad_token = tokenizer.eos_token
model = AutoModelForCausalLM.from_pretrained(
"TechxGenus/Mini-Jamba-v2",
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-v2 on huggingface.co
40
Total runs
0
24-hour runs
1
3-day runs
8
7-day runs
30
30-day runs
More Information About Mini-Jamba-v2 huggingface.co Model
Mini-Jamba-v2 huggingface.co is an AI model on huggingface.co that provides Mini-Jamba-v2's model effect (), which can be used instantly with this TechxGenus Mini-Jamba-v2 model. huggingface.co supports a free trial of the Mini-Jamba-v2 model, and also provides paid use of the Mini-Jamba-v2. Support call Mini-Jamba-v2 model through api, including Node.js, Python, http.
Mini-Jamba-v2 huggingface.co is an online trial and call api platform, which integrates Mini-Jamba-v2's modeling effects, including api services, and provides a free online trial of Mini-Jamba-v2, you can try Mini-Jamba-v2 online for free by clicking the link below.
TechxGenus Mini-Jamba-v2 online free url in huggingface.co:
Mini-Jamba-v2 is an open source model from GitHub that offers a free installation service, and any user can find Mini-Jamba-v2 on GitHub to install. At the same time, huggingface.co provides the effect of Mini-Jamba-v2 install, users can directly use Mini-Jamba-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.