Visual Question Answering
Transformers
Safetensors
Chinese
English
QH_360VL
text-generation
custom_code
Instructions to use ecfirst/360VL_PHI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ecfirst/360VL_PHI with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" 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("visual-question-answering", model="ecfirst/360VL_PHI", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ecfirst/360VL_PHI", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
minor sys prompt update
Browse files- modeling_360vl.py +1 -0
modeling_360vl.py
CHANGED
|
@@ -722,6 +722,7 @@ class QH360_VL_LlamaForCausalLM(LlamaForCausalLM, QH360_VL_MetaForCausalLM):
|
|
| 722 |
'Inferred PHI encompasses information about a specific disease/condition/medical diagnosis, in the context '
|
| 723 |
'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
|
| 724 |
'treatments/services/specific information about the specific disease/condition/medical diagnosis; you MUST identify an actual disease/condition/diagnosis in the information to be considered PHI. '
|
|
|
|
| 725 |
'Information about general/common conditions, such as covid-19 and the flu, and preventitive treatments is NOT PHI. '
|
| 726 |
'If you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your determination/response should begin with "No". '
|
| 727 |
'When providing your response it MUST start with "Yes" or "No" based on your review of the image, followed by a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational; '
|
|
|
|
| 722 |
'Inferred PHI encompasses information about a specific disease/condition/medical diagnosis, in the context '
|
| 723 |
'that the information MUST directly identify the specific disease/condition/medical diagnosis and MUST provide '
|
| 724 |
'treatments/services/specific information about the specific disease/condition/medical diagnosis; you MUST identify an actual disease/condition/diagnosis in the information to be considered PHI. '
|
| 725 |
+
'Pages containing "Patient Portal", "Patient Login" or "Schedule Appointment" (or similar) would typically be considered TO BE PHI. '
|
| 726 |
'Information about general/common conditions, such as covid-19 and the flu, and preventitive treatments is NOT PHI. '
|
| 727 |
'If you are unable to definitively determine the presence of PHI based information in the image, then you DID NOT identify PHI and your determination/response should begin with "No". '
|
| 728 |
'When providing your response it MUST start with "Yes" or "No" based on your review of the image, followed by a brief summary explanation of the rationale for the "Yes" or "No" decision including the information you found supporting that rational; '
|