Run this model with HF Jobs
Run nmitchko/i2b2-querybuilder-codellama-34b 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/nmitchko/i2b2-querybuilder-codellama-34b. 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/nmitchko/i2b2-querybuilder-codellama-34b 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/nmitchko/i2b2-querybuilder-codellama-34b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/nmitchko/i2b2-querybuilder-codellama-34b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use nmitchko/i2b2-querybuilder-codellama-34b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nmitchko/i2b2-querybuilder-codellama-34b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/media/nmitchko/NVME/text-generation-webui/models/codellama_CodeLlama-34b-hf") model = PeftModel.from_pretrained(base_model, "nmitchko/i2b2-querybuilder-codellama-34b") - Notebooks
- Google Colab
- Kaggle
i2b2 QueryBuilder - 34b
Model Description
This model will generate queries for your i2b2 query builder trained on this dataset for 10 epochs . For evaluation use.
- Do not use as a final research query builder.
- Results may be incorrect or mal-formatted.
- The onus of research accuracy is on the researcher, not the AI model.
Prompt Format
If you are using text-generation-webui, you can download the instruction template i2b2.yaml
Below is an instruction that describes a task.
### Instruction:
{input}
### Response:
```xml
Architecture
nmitchko/i2b2-querybuilder-codellama-34b is a large language model LoRa specifically fine-tuned for generating queries in the i2b2 query builder.
It is based on codellama-34b-hf at 34 billion parameters.
The primary goal of this model is to improve research accuracy with the i2b2 tool. It was trained using LoRA, specifically QLora Multi GPU, to reduce memory footprint.
See Training Parameters for more info This Lora supports 4-bit and 8-bit modes.
Requirements
bitsandbytes>=0.41.0
peft@main
transformers@main
Steps to load this model:
- Load base model (codellama-34b-hf) using transformers
- Apply LoRA using peft
# Sample Code Coming
Training Parameters
The model was trained for or 10 epochs on i2b2-query-data-1.0
i2b2-query-data-1.0 contains only tasks and outputs for i2b2 queries xsd schemas.
| Item | Amount | Units |
|---|---|---|
| LoRA Rank | 64 | ~ |
| LoRA Alpha | 16 | ~ |
| Learning Rate | 1e-4 | SI |
| Dropout | 5 | % |
Training procedure
The following bitsandbytes quantization config was used during training:
- quant_method: QuantizationMethod.BITS_AND_BYTES
- load_in_8bit: False
- load_in_4bit: True
- llm_int8_threshold: 6.0
- llm_int8_skip_modules: None
- llm_int8_enable_fp32_cpu_offload: False
- llm_int8_has_fp16_weight: False
- bnb_4bit_quant_type: nf4
- bnb_4bit_use_double_quant: True
- bnb_4bit_compute_dtype: bfloat16
Framework versions
- PEFT 0.6.0.dev0
- Downloads last month
- 5
