Downloads · 30 days
66
5% of all-time downloads
nold/LLaMAntino-2-13b-hf-ITA-GGUF
LLaMAntino-2-13b-hf-ITA-GGUF is a machine learning model from nold. 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 llama2.
Downloads · 30 days
66
5% of all-time downloads
All-time downloads
1.4K
Public
Repo size
41.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf41.6 GB · 100%
From the Hugging Face model README
Last Update: 22/01/2024<br>
LLaMAntino-2-13b is a Large Language Model (LLM) that is an italian-adapted LLaMA 2. This model aims to provide Italian NLP researchers with a base model for natural language generation tasks.
The model was trained using QLora and using as training data clean_mc4_it medium. If you are interested in more details regarding the training procedure, you can find the code we used at the following link:
NOTICE: the code has not been released yet, we apologize for the delay, it will be available asap!
Below you can find an example of model usage:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "swap-uniba/LLaMAntino-2-13b-hf-ITA"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Scrivi qui un possibile prompt"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
outputs = model.generate(input_ids=input_ids)
print(tokenizer.batch_decode(outputs.detach().cpu().numpy()[:, input_ids.shape[1]:], skip_special_tokens=True)[0])
If you are facing issues when loading the model, you can try to load it quantized:
model = AutoModelForCausalLM.from_pretrained(model_id, load_in_8bit=True)
Note: The model loading strategy above requires the bitsandbytes and accelerate libraries
If you use this model in your research, please cite the following:
@misc{basile2023llamantino,
title={LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language},
author={Pierpaolo Basile and Elio Musacchio and Marco Polignano and Lucia Siciliani and Giuseppe Fiameni and Giovanni Semeraro},
year={2023},
eprint={2312.09993},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Notice: Llama 2 is licensed under the LLAMA 2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved. License
Quantization of Model swap-uniba/LLaMAntino-2-13b-hf-ITA. Created using llm-quantizer Pipeline