llamafactory Writer agents
Collection
finetuned with LeoYML/FoamGPT as the input writer agent for foam agent โข 5 items โข Updated
Run finalform/foamGranite3.3-8B-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/finalform/foamGranite3.3-8B-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/finalform/foamGranite3.3-8B-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use finalform/foamGranite3.3-8B-Instruct with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-3.3-8b-instruct")
model = PeftModel.from_pretrained(base_model, "finalform/foamGranite3.3-8B-Instruct")This model is a fine-tuned version of ibm-granite/granite-3.3-8b-instruct on the train dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.4051 | 1.0 | 32 | 0.4305 | 0.8978 |
| 0.2886 | 2.0 | 64 | 0.3232 | 0.9206 |
| 0.2289 | 3.0 | 96 | 0.2742 | 0.9323 |
| 0.1925 | 4.0 | 128 | 0.2514 | 0.9387 |
| 0.1079 | 5.0 | 160 | 0.2456 | 0.9420 |
| 0.0968 | 6.0 | 192 | 0.2410 | 0.9454 |
| 0.0835 | 7.0 | 224 | 0.2464 | 0.9466 |
| 0.0716 | 8.0 | 256 | 0.2516 | 0.9472 |
| 0.0611 | 9.0 | 288 | 0.2523 | 0.9475 |
Base model
ibm-granite/granite-3.3-8b-base
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-3.3-8b-instruct") model = PeftModel.from_pretrained(base_model, "finalform/foamGranite3.3-8B-Instruct")