Lihuchen commited on
Commit
c588829
·
verified ·
1 Parent(s): 5884f08

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -2
README.md CHANGED
@@ -17,6 +17,40 @@ Benefits of using this model:
17
  * integration of external resources for better analysis (Semantic Scholar, OpenAlex, Pubmed...)
18
  * it offers powerful predictions with reliable explanations
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  **Datasets**
21
  * [Pubmed Retraction](https://huggingface.co/datasets/Lihuchen/pubmed_retraction)
22
  * [Instruction](https://huggingface.co/datasets/Lihuchen/pubmed_retraction_instruction)
@@ -60,6 +94,4 @@ The article should be retracted due to potential data fabrication or manipulatio
60
  raising concerns about research reliability.
61
  ```
62
 
63
- ### Debate Mode
64
-
65
 
 
17
  * integration of external resources for better analysis (Semantic Scholar, OpenAlex, Pubmed...)
18
  * it offers powerful predictions with reliable explanations
19
 
20
+ **Quick Start**
21
+
22
+ Install Pub-Guard-LLM using pip:
23
+ ```python
24
+ pip install pub-guard-llm
25
+ ```
26
+
27
+ An example to show how to use our model to detect fraudulent articles.
28
+
29
+ ```python
30
+ import torch
31
+ from transformers import AutoModelForCausalLM, AutoTokenizer
32
+ from pub_guard_llm import PubGuard
33
+
34
+
35
+
36
+ input_article = {
37
+ 'Title':"Challenges in diagnosis and management of diabetes in the young.",
38
+ 'Abstract':"The prevalence of diabetes in children and adolescents is increasing worldwide, with profound implications on the long-term health of individuals, societies, and nations. The diagnosis and management of diabetes in youth presents several unique challenges. Although type 1 diabetes is more common among children and adolescents, the incidence of type 2 diabetes in youth is also on the rise, particularly among certain ethnic groups. In addition, less common types of diabetes such as monogenic diabetes syndromes and diabetes secondary to pancreatopathy (in some parts of the world) need to be accurately identified to initiate the most appropriate treatment. A detailed patient history and physical examination usually provides clues to the diagnosis. However, specific laboratory and imaging tests are needed to confirm the diagnosis. The management of diabetes in children and adolescents is challenging in some cases due to age-specific issues and the more aggressive nature of the disease. Nonetheless, a patient-centered approach focusing on comprehensive risk factor reduction with the involvement of all concerned stakeholders (the patient, parents, peers and teachers) could help in ensuring the best possible level of diabetes control and prevention or delay of long-term complications. ",
39
+ 'Authors':["Ranjit Unnikrishnan", "Viral N Shah", "Viswanathan Mohan"],
40
+ 'Institutions':["Barbara Davis Center for Diabetes, University of Colorado Anschutz Campus, Aurora, CO USA", "Madras Diabetes Research Foundation & Dr Mohan's Diabetes Specialties Centre, Who Collaborating Centre for Non-Communicable Diseases Prevention and Control, 4, Conran Smith Road, Gopalapuram, Chennai, 600 086 India."],
41
+ 'Journal':'Frontiers in Cell and Developmental Biology',
42
+ }
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("Lihuchen/pub-guard-llama-8b")
45
+ model = AutoModelForCausalLM.from_pretrained("Lihuchen/pub-guard-llama-8b", torch_dtype=torch.bfloat16)
46
+ model.to('cuda')
47
+
48
+ pub_guard = PubGuard(model=model, tokenizer=tokenizer)
49
+ answer = pub_guard.predict(input_article)
50
+ print(answer)
51
+ ```
52
+
53
+
54
  **Datasets**
55
  * [Pubmed Retraction](https://huggingface.co/datasets/Lihuchen/pubmed_retraction)
56
  * [Instruction](https://huggingface.co/datasets/Lihuchen/pubmed_retraction_instruction)
 
94
  raising concerns about research reliability.
95
  ```
96
 
 
 
97