Downloads · 30 days
13
21% of all-time downloads
akameswa/mistral-7b-instruct-code-ties-old
mistral-7b-instruct-code-ties-old is a text generation model from akameswa. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
mistral-7b-instruct-code-ties is a merge of the following models using mergekit: akameswa/mistral-7b-instruct-javascript-16bit akameswa/mistral-7b-instruct-python-16bit
Downloads · 30 days
13
21% of all-time downloads
All-time downloads
61
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
mistral-7b-instruct-code-ties is a merge of the following models using mergekit:
models:
- model: akameswa/mistral-7b-instruct-v0.2-bnb-16bit
- model: akameswa/mistral-7b-instruct-javascript-16bit
parameters:
density: 0.85
weight: 0.25
- model: akameswa/mistral-7b-instruct-python-16bit
parameters:
density: 0.85
weight: 0.25
- model: akameswa/mistral-7b-instruct-java-16bit
parameters:
density: 0.85
weight: 0.25
- model: akameswa/mistral-7b-instruct-javascript-16bit
parameters:
density: 0.85
weight: 0.25
merge_method: ties
base_model: akameswa/mistral-7b-instruct-v0.2-bnb-16bit
parameters:
normalize: true
dtype: float16
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "akameswa/mistral-7b-instruct-code-ties",
max_seq_length = 2048,
)
xlcost_prompt = """Below is a description of a programming task. Write a response that appropriately completes the task based on the given description.
### Description:
{}
### Code:
{}"""
FastLanguageModel.for_inference(model)
inputs = tokenizer(
[
xlcost_prompt.format(
"Continue the fibonnaci sequence.",
"",
)
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 64, use_cache = True)
tokenizer.batch_decode(outputs)