CobraMamba commited on
Commit
6439444
1 Parent(s): a089344

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md CHANGED
@@ -1,3 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: transformers
5
+ tags:
6
+ - gpt
7
+ - llm
8
+ - large language model
9
+ inference: false
10
+ thumbnail: >-
11
+ https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources/images/favicon.ico
12
+ license: apache-2.0
13
+ ---
14
+ # Model Card
15
+
16
+
17
+ ## Summary
18
+
19
+ We have fine-tuned the OpenLLaMA model and surpassed the original model in multiple evaluation subtasks, making it currently one of the best performing 3B model, with comparable performance to llama-7b.
20
+ - Base model: [openlm-research/open_llama_7b_v2](https://huggingface.co/openlm-research/open_llama_7b_v2)
21
+
22
+
23
+ ## Usage
24
+
25
+ To use the model with the `transformers` library on a machine with GPU(s), first make sure you have the `transformers`, `accelerate` and `torch` libraries installed.
26
+
27
+ Ensure you are utilizing a stable version of Transformers, 4.34.0 or newer.
28
+
29
+ Then, run the following Python snippet:
30
+
31
+ ```python
32
+ from transformers import AutoTokenizer, AutoModelForCausalLM
33
+
34
+ tokenizer = AutoTokenizer.from_pretrained("CobraMamba/mamba-gpt-7b-v2")
35
+ model = AutoModelForCausalLM.from_pretrained("CobraMamba/mamba-gpt-7b-v2", trust_remote_code=True, torch_dtype=torch.float16)
36
+
37
+ input_content = "Your text here"
38
+ input_ids = tokenizer.encode(input_content, return_tensors="pt")
39
+ output = model.generate(input_ids, max_length=128, temperature=0.7)
40
+ output_text = tokenizer.decode(output[0], skip_special_tokens=True)
41
+ print(output_text)
42
+
43
+ ```
44
+
45
+
46
+ ## Citation
47
+
48
+ If this work is helpful, please kindly cite as:
49
+
50
+ ```bibtex
51
+ @Misc{mamba-gpt-7b-v2,
52
+ title = {Mamba-GPT-7b-v2},
53
+ author = {chiliu},
54
+ howpublished = {\url{https://huggingface.co/CobraMamba/mamba-gpt-7b-v2}},
55
+ year = {2023}
56
+ }
57
+ ```
58
+
59
+
60
+ ## Disclaimer
61
+
62
+ Please read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.
63
+
64
+ - Biases and Offensiveness: The large language model is trained on a diverse range of internet text data, which may contain biased, racist, offensive, or otherwise inappropriate content. By using this model, you acknowledge and accept that the generated content may sometimes exhibit biases or produce content that is offensive or inappropriate. The developers of this repository do not endorse, support, or promote any such content or viewpoints.
65
+ - Limitations: The large language model is an AI-based tool and not a human. It may produce incorrect, nonsensical, or irrelevant responses. It is the user's responsibility to critically evaluate the generated content and use it at their discretion.
66
+ - Use at Your Own Risk: Users of this large language model must assume full responsibility for any consequences that may arise from their use of the tool. The developers and contributors of this repository shall not be held liable for any damages, losses, or harm resulting from the use or misuse of the provided model.
67
+
68
  ---
69
  license: apache-2.0
70
  ---