Adi-Evolve commited on
Commit
a998233
·
verified ·
1 Parent(s): eea688d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -13
README.md CHANGED
@@ -1,21 +1,55 @@
1
  ---
2
- base_model: unsloth/gemma-2-9b-it-bnb-4bit
3
  tags:
4
- - text-generation-inference
5
- - transformers
6
  - unsloth
7
- - gemma2
8
- license: apache-2.0
9
- language:
10
- - en
11
  ---
12
 
13
- # Uploaded finetuned model
14
 
15
- - **Developed by:** Adi-Evolve
16
- - **License:** apache-2.0
17
- - **Finetuned from model :** unsloth/gemma-2-9b-it-bnb-4bit
18
 
19
- This gemma2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
20
 
21
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
  tags:
 
 
4
  - unsloth
5
+ - gemma-2
6
+ - fact-checking
7
+ - misinformation-detection
8
+ license: gemma
9
  ---
10
 
11
+ # gemma-2-9b-linkscout-v1
12
 
13
+ This model is a fine-tuned version of `unsloth/gemma-2-9b-it-bnb-4bit` for fact-checking and misinformation detection.
 
 
14
 
15
+ ## Model Description
16
 
17
+ - **Base Model:** unsloth/gemma-2-9b-it-bnb-4bit
18
+ - **Fine-tuned for:** Fact-checking and bias detection
19
+ - **Training Method:** LoRA/QLoRA with Unsloth
20
+ - **Merged:** Yes (adapter merged with base model)
21
+
22
+ ## Usage
23
+
24
+ ```python
25
+ from unsloth import FastLanguageModel
26
+
27
+ model, tokenizer = FastLanguageModel.from_pretrained(
28
+ model_name="Adi-Evolve/gemma-2-9b-linkscout-v1",
29
+ max_seq_length=2048,
30
+ dtype=None,
31
+ load_in_4bit=True,
32
+ )
33
+
34
+ FastLanguageModel.for_inference(model)
35
+
36
+ # Generate analysis
37
+ prompt = """<start_of_turn>user
38
+ Analyze this article for misinformation: [ARTICLE TEXT]
39
+ <end_of_turn>
40
+ <start_of_turn>model
41
+ """
42
+
43
+ inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
44
+ outputs = model.generate(**inputs, max_new_tokens=512)
45
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
46
+ ```
47
+
48
+ ## Training Details
49
+
50
+ - Merged from LoRA adapter
51
+ - Original base: unsloth/gemma-2-9b-it-bnb-4bit
52
+
53
+ ## Limitations
54
+
55
+ This model should be used as a tool to assist in fact-checking, not as a sole source of truth.