Downloads · 30 days
17
37% of all-time downloads
AnishJoshi/codellama2-finetuned-nl2bash-fin
codellama2-finetuned-nl2bash-fin is a text generation model from AnishJoshi. Use it when you need the model to write or continue text. It is set up for transformers.
Finetuned on the AnishJoshi/nl2bash-custom dataset for generating bash code based on natural language descriptions.
Downloads · 30 days
17
37% of all-time downloads
All-time downloads
46
Public
Parameters
6.7B
13.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
Finetuned on the AnishJoshi/nl2bash-custom dataset for generating bash code based on natural language descriptions.
adapter_config.json: Configuration file for the adapter layers.adapter_model.safetensors: Weights of the adapter layers in the Safetensors format.optimizer.pt: State of the optimizer used during training.rng_state.pth: State of the random number generator.scheduler.pt: State of the learning rate scheduler.special_tokens_map.json: Mapping for special tokens used by the tokenizer.tokenizer.json: Tokenizer model including the vocabulary.tokenizer_config.json: Configuration settings for the tokenizer.trainer_state.json: State of the trainer including training metrics.training_args.bin: Training arguments used for fine-tuning.from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("AnishJoshi/codellama2-finetuned-nl2bash-fin")
model = AutoModelForCausalLM.from_pretrained("AnishJoshi/codellama2-finetuned-nl2bash-fin")
Training details available at Finetuning Notebook
Training arguments and configuration are set using TrainingArguments and LoraConfig. The model is fine-tuned using the following parameters:
output_dir: codellama2-finetuned-nl2bash - Directory to save the fine-tuned model.per_device_train_batch_size: 2 - Batch size per device.gradient_accumulation_steps: 16 - Number of gradient accumulation steps.optim: paged_adamw_32bit - Optimizer type.learning_rate: 2e-4 - Learning rate.lr_scheduler_type: cosine - Learning rate scheduler type.save_strategy: epoch - Strategy to save checkpoints.logging_steps: 10 - Number of steps between logging.num_train_epochs: 1 - Number of training epochs.max_steps: 100 - Maximum number of training steps.fp16: True - Use 16-bit floating-point precision.push_to_hub: False - Whether to push the model to Hugging Face Hub.report_to: none - Reporting destination.Evaulation metrics and calculations available at Evaluation Notebook