Feature Extraction
Transformers
Safetensors
English
phagen
biology
dna
genomics
bacteriophage
diffusion
masked-diffusion
custom-code
custom_code
Instructions to use YusenWithR/PhaGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YusenWithR/PhaGen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="YusenWithR/PhaGen", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("YusenWithR/PhaGen", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from YusenWithR/PhaGen: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/YusenWithR/PhaGen/resolve/main/config.json
- Command line
-
hf download hf://YusenWithR/PhaGen/config.json
-
curl -L -o config.json https://huggingface.co/YusenWithR/PhaGen/resolve/main/config.json
687 Bytes
| { | |
| "architectures": [ | |
| "PhaGenModel" | |
| ], | |
| "attn_dropout": 0.0, | |
| "attn_implementation": "flash_attention_2", | |
| "auto_map": { | |
| "AutoConfig": "configuration_phagen.PhaGenConfig", | |
| "AutoModel": "modeling_phagen.PhaGenModel", | |
| "AutoModelForCausalLM": "modeling_phagen.PhaGenModel" | |
| }, | |
| "depth": [ | |
| 8, | |
| 8, | |
| 8 | |
| ], | |
| "dim": [ | |
| 512, | |
| 256, | |
| 196 | |
| ], | |
| "dim_head": 64, | |
| "ff_dropout": 0.0, | |
| "ff_mult": 4, | |
| "heads": 8, | |
| "max_seq_len": [ | |
| 128, | |
| 64, | |
| 16 | |
| ], | |
| "model_type": "phagen", | |
| "num_tokens": 9, | |
| "pad_token_id": 7, | |
| "pos_emb": false, | |
| "rel_pos": true, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "4.54.1", | |
| "vocab_size": 9 | |
| } | |