Views
No views yet
<|start_of_smiles|> / <|end_of_smiles|>
special tokens, and its embedding & LM-head layers were resized with
mean-initialised vectors for the new tokens.| Parameter | Value |
|---|---|
| Method | Full Fine-Tune (all weights updated) |
| Parallelism | FSDP (Fully Sharded Data Parallel) |
| Epochs | 1 |
| Learning Rate | 5e-06 |
| Batch Size (per device) | 16 |
| Gradient Accumulation | 1 |
| Max Sequence Length | 512 |
| Warmup Ratio | 0.1 |
| Weight Decay | 0.01 |
| Scheduler | Cosine |
| Precision | bf16 |
| Augmentation | OFF |
| Training Samples | 250000 |
| Eval Samples | 25000 |
| Metric | Value |
|---|---|
| Final Eval Loss | 0.9727568626403809 |
| Final Eval Perplexity | 2.645226943673604 |
| Training Loss | 1.1177 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("harindhar10/olmo_chem_lora_cpt_LoRA_500k", trust_remote_code=True)
4tokenizer = AutoTokenizer.from_pretrained("harindhar10/olmo_chem_lora_cpt_LoRA_500k", trust_remote_code=True)
5
6smiles_input = "<|start_of_smiles|>CC(=O)Oc1ccccc1C(=O)O<|end_of_smiles|>"
7inputs = tokenizer(smiles_input, return_tensors="pt")
8outputs = model.generate(**inputs, max_new_tokens=128)
9print(tokenizer.decode(outputs[0], skip_special_tokens=False))