Summarization
Transformers
Safetensors
English
phi
text-generation
arxiv
custom_code
text-generation-inference
Instructions to use AlgorithmicResearchGroup/phi-chemistry with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlgorithmicResearchGroup/phi-chemistry with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="AlgorithmicResearchGroup/phi-chemistry", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlgorithmicResearchGroup/phi-chemistry", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("AlgorithmicResearchGroup/phi-chemistry", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Commit ·
5ea2e8f
1
Parent(s): 7759b47
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -10,11 +10,12 @@
|
|
| 10 |
"AutoModelForCausalLM": "microsoft/phi-1_5--modeling_phi.PhiForCausalLM"
|
| 11 |
},
|
| 12 |
"embd_pdrop": 0.0,
|
|
|
|
| 13 |
"flash_rotary": false,
|
| 14 |
"fused_dense": false,
|
| 15 |
"initializer_range": 0.02,
|
| 16 |
"layer_norm_epsilon": 1e-05,
|
| 17 |
-
"model_type": "
|
| 18 |
"n_embd": 2048,
|
| 19 |
"n_head": 32,
|
| 20 |
"n_head_kv": null,
|
|
|
|
| 10 |
"AutoModelForCausalLM": "microsoft/phi-1_5--modeling_phi.PhiForCausalLM"
|
| 11 |
},
|
| 12 |
"embd_pdrop": 0.0,
|
| 13 |
+
"flash_attn": false,
|
| 14 |
"flash_rotary": false,
|
| 15 |
"fused_dense": false,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"layer_norm_epsilon": 1e-05,
|
| 18 |
+
"model_type": "phi",
|
| 19 |
"n_embd": 2048,
|
| 20 |
"n_head": 32,
|
| 21 |
"n_head_kv": null,
|