chaitanya42 commited on
Commit
6b20772
1 Parent(s): 5668504

Created README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - text-generation
5
+ - conversational
6
+ - falcon
7
+ - lora
8
+ - peft
9
+ - trl
10
+ - bitsandbytes
11
+ ---
12
+
13
+ # Falcon-7b-chat-new-finetune
14
+
15
+ This model is a fine-tuned version of [ybelkada/falcon-7b-sharded-bf16](https://huggingface.co/ybelkada/falcon-7b-sharded-bf16) using the [timdettmers/openassistant-guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco) dataset. It has been fine-tuned using LoRA (Low-Rank Adaptation), PEFT (Parameter-Efficient Fine-Tuning), and TRL (Transformer Reinforcement Learning) techniques. It also leverages BitsAndBytes for 4-bit quantization.
16
+
17
+ ## Model Description
18
+
19
+ This model is intended for conversational AI tasks, such as chatbots and dialogue systems. It has been trained on a large dataset of human conversations and is capable of generating human-like text.
20
+
21
+ ## Intended Uses & Limitations
22
+
23
+ - **Intended uses:** This model can be used for text generation, dialogue systems, and other conversational AI applications.
24
+ - **Limitations:** The model may generate biased or offensive content. It is important to carefully review the model's outputs before using them in a production environment.
25
+
26
+ ## Training and Fine-tuning
27
+
28
+ - **Base model:** [ybelkada/falcon-7b-sharded-bf16](https://huggingface.co/ybelkada/falcon-7b-sharded-bf16)
29
+ - **Dataset:** [timdettmers/openassistant-guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco)
30
+ - **Fine-tuning techniques:** LoRA, PEFT, TRL
31
+ - **Quantization:** BitsAndBytes (4-bit)
32
+
33
+ ## How to Use
34
+ ```
35
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
36
+
37
+ prompt = "Explain AI vs ML vs DL vs Generative AI."
38
+ model_name = "chaitanya42/Falcon-7b-chat-new-finetune"
39
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
40
+ model = AutoModelForCausalLM.from_pretrained(model_name)
41
+
42
+ pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
43
+ result = pipe(f"{prompt} \n")
44
+ print(result[0]['generated_text'])
45
+ ```
46
+
47
+ ## Author
48
+
49
+ This model was fine-tuned by [chaitanya42](https://huggingface.co/chaitanya42).