Run this model with HF Jobs
Run thenlpresearcher/mistral_sequence_classification 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/thenlpresearcher/mistral_sequence_classification. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/thenlpresearcher/mistral_sequence_classification 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.
Instructions to use thenlpresearcher/mistral_sequence_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use thenlpresearcher/mistral_sequence_classification with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("mistralai/Mistral-7B-v0.3") model = PeftModel.from_pretrained(base_model, "thenlpresearcher/mistral_sequence_classification") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (11)
- README.mdAdded+64
- adapter_config.jsonAdded+37
- adapter_model.safetensorsAdded+3
- runs/Feb06_10-22-02_e38d418088f5/events.out.tfevents.1738837323.e38d418088f5.80606.0Added+3
- runs/Feb06_10-23-46_e38d418088f5/events.out.tfevents.1738837430.e38d418088f5.80985.0Added+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded
- trainer_state.jsonAdded+101
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364---library_name: peftlicense: apache-2.0base_model: mistralai/Mistral-7B-v0.3tags:- generated_from_trainermodel-index:- name: mistral_sequence_classification results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# mistral_sequence_classification
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.2667- Pearson: 0.9704
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 0.0001- train_batch_size: 32- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Pearson ||:-------------:|:-----:|:----:|:---------------:|:-------:|| No log | 1.0 | 206 | 0.3305 | 0.9028 || No log | 2.0 | 412 | 0.2609 | 0.9532 || 0.4868 | 3.0 | 618 | 0.2432 | 0.9611 || 0.4868 | 4.0 | 824 | 0.2611 | 0.9639 || 0.0417 | 5.0 | 1030 | 0.2667 | 0.9704 |
### Framework versions
- PEFT 0.14.0- Transformers 4.45.2- Pytorch 2.4.0a0+f70bd71a48.nv24.06- Datasets 3.2.0- Tokenizers 0.20.312345678910111213141516171819202122232425262728293031323334353637{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "mistralai/Mistral-7B-v0.3", "bias": "none", "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": [ "classifier", "score" ], "peft_type": "LORA", "r": 64, "rank_pattern": {}, "revision": null, "target_modules": [ "q_proj", "v_proj", "o_proj", "k_proj" ], "task_type": "SEQ_CLS", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:6269f2ea8b7e459750a2c271665b6bad832e0b0d3fc4084a26d26ad24d7a28a6size 218220600123version https://git-lfs.github.com/spec/v1oid sha256:5436be6497c1d9d92829edb3f17db7e99b9f6064e7036b5d23cee65107292b3asize 5706123version https://git-lfs.github.com/spec/v1oid sha256:cbc1b671467eb08e26f5ed3f77e80a0bb7c7b508b281587db54d2200872daa13size 8092123456789101112131415161718192021222324{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "</s>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89size 587404123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ "best_metric": 0.24322812259197235, "best_model_checkpoint": "mistral_sequence_classification/checkpoint-618", "epoch": 5.0, "eval_steps": 500, "global_step": 1030, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "eval_loss": 0.3304608464241028, "eval_pearson": 0.9027747531908439, "eval_runtime": 15.8259, "eval_samples_per_second": 58.891, "eval_steps_per_second": 7.393, "step": 206 }, { "epoch": 2.0, "eval_loss": 0.2608998417854309, "eval_pearson": 0.9531635605038489, "eval_runtime": 15.7775, "eval_samples_per_second": 59.071, "eval_steps_per_second": 7.416, "step": 412 }, { "epoch": 2.4271844660194173, "grad_norm": 21.120954513549805, "learning_rate": 5.145631067961165e-05, "loss": 0.4868, "step": 500 }, { "epoch": 3.0, "eval_loss": 0.24322812259197235, "eval_pearson": 0.961136250737733, "eval_runtime": 15.732, "eval_samples_per_second": 59.242, "eval_steps_per_second": 7.437, "step": 618 }, { "epoch": 4.0, "eval_loss": 0.26112988591194153, "eval_pearson": 0.9639457727475045, "eval_runtime": 15.8547, "eval_samples_per_second": 58.784, "eval_steps_per_second": 7.38, "step": 824 }, { "epoch": 4.854368932038835, "grad_norm": 0.005307361483573914, "learning_rate": 2.912621359223301e-06, "loss": 0.0417, "step": 1000 }, { "epoch": 5.0, "eval_loss": 0.2666521966457367, "eval_pearson": 0.9703769235281202, "eval_runtime": 15.6636, "eval_samples_per_second": 59.501, "eval_steps_per_second": 7.47, "step": 1030 }, { "epoch": 5.0, "step": 1030, "total_flos": 6.321458643082445e+16, "train_loss": 0.2567840828768258, "train_runtime": 1141.9471, "train_samples_per_second": 28.745, "train_steps_per_second": 0.902 } ], "logging_steps": 500, "max_steps": 1030, "num_input_tokens_seen": 0, "num_train_epochs": 5, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 6.321458643082445e+16, "train_batch_size": 32, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:85bb051bb15730e29fa95904009fe6bb5c0ca34a62b2d544bbafe6024bd57a92size 5240README.mdAdded+64
adapter_config.jsonAdded+37
adapter_model.safetensorsAdded+3
runs/Feb06_10-22-02_e38d418088f5/events.out.tfevents.1738837323.e38d418088f5.80606.0Added+3
runs/Feb06_10-23-46_e38d418088f5/events.out.tfevents.1738837430.e38d418088f5.80985.0Added+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded
trainer_state.jsonAdded+101
training_args.binAdded+3