Instructions to use Gbone3176/DermL2V with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Gbone3176/DermL2V with PEFT:
from peft import PeftModel from transformers import AutoModel base_model = AutoModel.from_pretrained("meta-llama/Meta-Llama-3.1-8B-Instruct") model = PeftModel.from_pretrained(base_model, "Gbone3176/DermL2V") - Notebooks
- Google Colab
- Kaggle
Download llm2vec_config.json from Gbone3176/DermL2V: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/Gbone3176/DermL2V/resolve/main/llm2vec_config.json
- Command line
-
hf download hf://Gbone3176/DermL2V/llm2vec_config.json
-
curl -L -o llm2vec_config.json https://huggingface.co/Gbone3176/DermL2V/resolve/main/llm2vec_config.json
337 Bytes
| { | |
| "pooling_mode": "structured_selfattn", | |
| "max_length": 512, | |
| "doc_max_length": 400, | |
| "skip_instruction": true, | |
| "selfattn_attn_hidden_dim": 512, | |
| "selfattn_num_hops": 8, | |
| "selfattn_output_dropout": 0.0, | |
| "selfattn_output_norm": "layernorm", | |
| "selfattn_gamma_init": 0.1, | |
| "selfattn_gamma_learnable": true | |
| } |