Downloads · 30 days
13
29% of all-time downloads
rbharmal/finetuned_Codestral-22B-v0.1
finetuned_Codestral-22B-v0.1 is a machine learning model from rbharmal. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
🚀 Finetuned version of mistralai/Codestral-22B-v0.1 by rbharmal.
Downloads · 30 days
13
29% of all-time downloads
All-time downloads
45
Public
Parameters
22.2B
44.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors44.5 GB · 100%
From the Hugging Face model README
🚀 Finetuned version of mistralai/Codestral-22B-v0.1 by rbharmal.
This model is finetuned for Type Inference in Python.
It was trained using Unsloth for optimized fine-tuning and uses merged LoRA weights for easier deployment.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("rbharmal/finetuned_Codestral-22B-v0.1")
tokenizer = AutoTokenizer.from_pretrained("rbharmal/finetuned_Codestral-22B-v0.1")
prompt = "
## Task Description
**Objective**: Examine and identify the data types of various elements such as function parameters, local variables, and function return types in the given Python code.
**Instructions**:
1. For each question below, provide a concise, one-word answer indicating the data type.
2. For arguments and variables inside a function, list every data type they take within the current program context as a comma separated list.
3. Do not include additional explanations or commentary in your answers.
4. If a type's nested level exceeds 2, replace all components at that level and beyond with Any
**Python Code Provided**:
def param_func(x):
return x
c = param_func("Hello")
**Questions**:
1. What is the return type of the function 'param_func' at line 1, column 5?
2. What is the type of the parameter 'x' at line 1, column 15, in the function 'param_func'?
3. What is the type of the variable 'c' at line 4, column 1? "
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))