Downloads · 30 days
8
3% of all-time downloads
kevinkawchak/gradientai-Llama-3-8B-Instruct-Gradient-1048k-Molecule16
gradientai-Llama-3-8B-Instruct-Gradient-1048k-Molecule16 is a text generation model from kevinkawchak. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
- Developed by: kevinkawchak - License: llama3 - Finetuned from model : gradientai/Llama-3-8B-Instruct-Gradient-1048k - Finetuned using dataset : zjunlp/Mol-Instructions, cc-by-4.0 - Dataset identification: Molecule-o…
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
237
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
gradientai/Llama-3-8B-Instruct-Gradient-1048k Model <br> Llama 3 8B update: 1040K context length from 8K, and highest RAM consumption<br> "What is the structure for adenine?" Verbose SELFIES structure, but logical<br> Fine-tuned on Mol-Instructions, float16, GitHub, 610 seconds, A100 40GB <br>
NousResearch/Hermes-2-Pro-Llama-3-8B Model<br> Llama 3 8B update: Cleaned OpenHermes 2.5, new Function Calling, JSON Mode dataset<br> "What is the structure for adenine?" Concise SELFIES structure, but less logical <br> Fine-tuned on Mol-Instructions, float16, GitHub, 599 seconds, A100 40GB <br>
nvidia/Llama3-ChatQA-1.5-8B Model<br> Llama 3 8B update: ChatQA-1.5 to enhance tabular and arithmetic calculation capability<br> "What is the structure for adenine?" Verbose SELFIES structure and less logical <br> Fine-tuned on Mol-Instructions, float16, GitHub, 599 seconds, A100 40GB <br>
Responses were verified against the Wikipedia Adenine SMILES format and a SMILES to SELFIES python notebook estimated generator. <br> Fine-tunings were performed using the Apache-2.0 unsloth 'Alpaca + Llama-3 8b full example' Colab notebook.
The following are modifications or improvements to original notebooks. Please refer to the authors' models for the published primary work. Cover Image. META LLAMA 3 COMMUNITY LICENSE AGREEMENT. Built with Meta Llama 3. <br>
A 4-bit quantization of Meta-Llama-3-8B-Instruct was used to reduce training memory requirements when fine-tuning on the zjunlp/Mol-Instructions dataset. (1-2) In addition, the minimum LoRA rank value was utilized to reduce the overall size of created models. In specific, the molecule-oriented instructions description guided molecule design was implemented to answer general questions and general biochemistry questions. General questions were answered with high accuracy, while biochemistry related questions returned 'SELFIES' structures but with limited accuracy.
The notebook featured Torch and Hugging Face libraries using the Unsloth llama-3-8b-Instruct-bnb-4bit quantization model. Training loss decreased steadily from 1.97 to 0.73 over 60 steps. Additional testing regarding the appropriate level of compression or hyperparameter adjustments for accurate SELFIES chemical structures outputs is relevant, as shown in the GitHub notebook for research purposes (3). A 16-bit and reduced 4-bit size were uploaded to Hugging Face. (4-5)
Update 04/24: The number of training steps were increased to further decrease loss, while maintaining reduced memory requirements through quantization and reduced size through LoRA. This allowed for significantly improved responses to biochemistry related questions, and were saved at the following LLM Model sizes: 8.03B, 4.65B. github.
References:
@inproceedings{fang2023mol, <br> author = {Yin Fang and<br> Xiaozhuan Liang and<br> Ningyu Zhang and<br> Kangwei Liu and<br> Rui Huang and<br> Zhuo Chen and<br> Xiaohui Fan and<br> Huajun Chen},<br> title = {Mol-Instructions: {A} Large-Scale Biomolecular Instruction Dataset<br> for Large Language Models},<br> booktitle = {{ICLR}},<br> publisher = {OpenReview.net},<br> year = {2024},<br> url = {https://openreview.net/pdf?id=Tlsdsb6l9n}}<br>
This llama model was trained with Unsloth and Huggingface's TRL library.