Instructions to use collij22/seq-adesplit_FT_BioMedLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use collij22/seq-adesplit_FT_BioMedLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="collij22/seq-adesplit_FT_BioMedLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("collij22/seq-adesplit_FT_BioMedLM") model = AutoModelForSequenceClassification.from_pretrained("collij22/seq-adesplit_FT_BioMedLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from collij22/seq-adesplit_FT_BioMedLM: direct link, hf CLI and curl.
- Browser
- Download file 940 Bytes
-
https://huggingface.co/collij22/seq-adesplit_FT_BioMedLM/resolve/main/config.json
- Command line
-
hf download hf://collij22/seq-adesplit_FT_BioMedLM/config.json
-
curl -L -o config.json https://huggingface.co/collij22/seq-adesplit_FT_BioMedLM/resolve/main/config.json
940 Bytes
| { | |
| "_name_or_path": "stanford-crfm/BioMedLM", | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "GPT2ForSequenceClassification" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "bos_token_id": 28895, | |
| "embd_pdrop": 0.1, | |
| "eos_token_id": 28895, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gpt2", | |
| "n_ctx": 1024, | |
| "n_embd": 2560, | |
| "n_head": 20, | |
| "n_inner": null, | |
| "n_layer": 32, | |
| "n_positions": 1024, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.1, | |
| "scale_attn_by_inverse_layer_idx": true, | |
| "scale_attn_weights": true, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "task_specific_params": { | |
| "text-generation": { | |
| "do_sample": true, | |
| "max_length": 50 | |
| } | |
| }, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.38.2", | |
| "use_cache": false, | |
| "vocab_size": 28896 | |
| } | |