Downloads · 30 days
8
14% of all-time downloads
fionazhang/mistral_7b_environment
mistral_7b_environment is a machine learning model from fionazhang. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
The model is a fine-tuned (quantized) Mistral7b model on a self-organised dataset about environmental knowledge. This model is currently still under development.
Downloads · 30 days
8
14% of all-time downloads
All-time downloads
58
Public
Parameters
7.2B
29.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors29.3 GB · 100%
From the Hugging Face model README
The model is a fine-tuned (quantized) Mistral7b model on a self-organised dataset about environmental knowledge. This model is currently still under development.
This repository includes the weights learned during the training process. It should be loaded witht the pre-trained Mistral 7b and tokenizer.
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->from transformers import AutoModelForSequenceClassification, AutoTokenizer
# Load the tokenizer, adjust configuration if needed
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Load the fine-tuned model with its trained weights
fine_tuned_model = AutoModelForSequenceClassification.from_pretrained(
'fionazhang/mistral_7b_environment',
)
# Now you can use `fine_tuned_model` for inference or further training
input_text = "The impact of climate change on"
output_text = fine_tuned_model.generate(tokenizer.encode(input_text, return_tensors="pt"))
print(tokenizer.decode(output_text[0], skip_special_tokens=True))
There are no modifications applied to the model. The model may return undesired or offensive response. Filters are encouraged to apply.
The fine-tuning data are parsed from these public Wikipedia websites:
The text corpus are preprocessed for better format.
The fine-tuning is self-supervised.
training_arguments = TrainingArguments(
output_dir="",
num_train_epochs=1,
per_device_train_batch_size=4,
gradient_accumulation_steps=1,
optim="paged_adamw_32bit",
save_steps=25,
logging_steps=25,
learning_rate=2e-4,
weight_decay=0.001,
fp16=False,
bf16=False,
max_grad_norm=0.3,
max_steps=-1,
warmup_ratio=0.03,
group_by_length=True,
lr_scheduler_type="constant",
report_to="wandb"
)
Not yet evaluated. Still working