Downloads · 30 days
25
1% of all-time downloads
RichardErkhov/ppm-pt_-_gemma-2-nb-2b-it-gguf
ppm-pt_-_gemma-2-nb-2b-it-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
25
1% of all-time downloads
All-time downloads
1.9K
Public
Repo size
32.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf37.3 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gemma-2-nb-2b-it - GGUF
| Name | Quant method | Size |
|---|---|---|
| gemma-2-nb-2b-it.Q2_K.gguf | Q2_K | 1.15GB |
| gemma-2-nb-2b-it.IQ3_XS.gguf | IQ3_XS | 1.22GB |
| gemma-2-nb-2b-it.IQ3_S.gguf | IQ3_S | 1.27GB |
| gemma-2-nb-2b-it.Q3_K_S.gguf | Q3_K_S | 1.27GB |
| gemma-2-nb-2b-it.IQ3_M.gguf | IQ3_M | 1.3GB |
| gemma-2-nb-2b-it.Q3_K.gguf | Q3_K | 1.36GB |
| gemma-2-nb-2b-it.Q3_K_M.gguf | Q3_K_M | 1.36GB |
| gemma-2-nb-2b-it.Q3_K_L.gguf | Q3_K_L | 1.44GB |
| gemma-2-nb-2b-it.IQ4_XS.gguf | IQ4_XS | 1.47GB |
| gemma-2-nb-2b-it.Q4_0.gguf | Q4_0 | 1.52GB |
| gemma-2-nb-2b-it.IQ4_NL.gguf | IQ4_NL | 1.53GB |
| gemma-2-nb-2b-it.Q4_K_S.gguf | Q4_K_S | 1.53GB |
| gemma-2-nb-2b-it.Q4_K.gguf | Q4_K | 1.59GB |
| gemma-2-nb-2b-it.Q4_K_M.gguf | Q4_K_M | 1.59GB |
| gemma-2-nb-2b-it.Q4_1.gguf | Q4_1 | 1.64GB |
| gemma-2-nb-2b-it.Q5_0.gguf | Q5_0 | 1.75GB |
| gemma-2-nb-2b-it.Q5_K_S.gguf | Q5_K_S | 1.75GB |
| gemma-2-nb-2b-it.Q5_K.gguf | Q5_K | 1.79GB |
| gemma-2-nb-2b-it.Q5_K_M.gguf | Q5_K_M | 1.79GB |
| gemma-2-nb-2b-it.Q5_1.gguf | Q5_1 | 1.87GB |
| gemma-2-nb-2b-it.Q6_K.gguf | Q6_K | 2.0GB |
| gemma-2-nb-2b-it.Q8_0.gguf | Q8_0 | 2.59GB |
library_name: transformers license: gemma language:
This model is a fine-tuned version of Google's gemma-2-2b-it, a 2.2-billion-parameter instruction-tuned language model. The "it" in the model name stands for "instruct," indicating that the base model is trained to follow instructions across multiple tasks and potentially multiple languages. The fine-tuning process was performed using the NbAiLab/norwegian-alpaca dataset, which contains Norwegian instruction-following data.
The model leverages parameter-efficient fine-tuning (PEFT) techniques, specifically Low-Rank Adaptation (LoRA), and utilizes 4-bit quantization to optimize memory usage and computational efficiency.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
The model is designed for generating Norwegian text for tasks such as:
- Instruction Following: Responding to user instructions in Norwegian.
- Text Generation: Generating coherent and contextually relevant Norwegian text.
- Conversational AI: Building chatbots or virtual assistants that communicate in Norwegian.
The model is fine-tuned from google/gemma-2-2b-it, and as such, all use must be according to the Gemma Terms of Use. The training data NbAiLab/norwegian-alpaca is generated using GPT-3.5, and therefore this model can not be used to compete against OpenAI in any way, shape, or form.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
from transformers import AutoTokenizer, AutoModelForCausalLM
#Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("ppm-pt/gemma-2-nb-2b-it", use_fast=True)
model = AutoModelForCausalLM.from_pretrained("ppm-pt/gemma-2-nb-2b-it", torch_dtype="auto")
#Prepare input text
input_text = "Hva er hovedstaden i Norge?"
input_ids = tokenizer.encode(input_text, return_tensors='pt')
#Generate output
output_ids = model.generate(input_ids, max_length=50, num_return_sequences=1)
output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(output_text)
NbAiLab/norwegian-alpaca
Frameworks Used:
Training Configuration
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type='nf4',
)
config = LoraConfig(
r=16,
lora_alpha=32,
target_modules=modules,
lora_dropout=0.05,
bias='none',
task_type='CAUSAL_LM',
)
Training Argumens:
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
sbdyrnes