Instructions to use arelius/MedicalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arelius/MedicalLM with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/BioGPT") model = PeftModel.from_pretrained(base_model, "arelius/MedicalLM") - Notebooks
- Google Colab
- Kaggle
Download config.json from arelius/MedicalLM: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/arelius/MedicalLM/resolve/main/config.json
- Command line
-
hf download hf://arelius/MedicalLM/config.json
-
curl -L -o config.json https://huggingface.co/arelius/MedicalLM/resolve/main/config.json
629 Bytes
| { | |
| "_name_or_path": "microsoft/BioGPT", | |
| "activation_dropout": 0.0, | |
| "architectures": [ | |
| "BioGptForCausalLM" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "layer_norm_eps": 1e-12, | |
| "layerdrop": 0.0, | |
| "max_position_embeddings": 1024, | |
| "model_type": "biogpt", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 1, | |
| "scale_embedding": true, | |
| "transformers_version": "4.34.1", | |
| "use_cache": true, | |
| "vocab_size": 42384 | |
| } | |