afrideva commited on
Commit
ac16490
1 Parent(s): eda5334

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mediocredev/open-llama-3b-v2-instruct
3
+ inference: false
4
+ license: apache-2.0
5
+ model_creator: mediocredev
6
+ model_name: open-llama-3b-v2-instruct
7
+ pipeline_tag: text-generation
8
+ quantized_by: afrideva
9
+ tags:
10
+ - gguf
11
+ - ggml
12
+ - quantized
13
+ - q2_k
14
+ - q3_k_m
15
+ - q4_k_m
16
+ - q5_k_m
17
+ - q6_k
18
+ - q8_0
19
+ ---
20
+ # mediocredev/open-llama-3b-v2-instruct-GGUF
21
+
22
+ Quantized GGUF model files for [open-llama-3b-v2-instruct](https://huggingface.co/mediocredev/open-llama-3b-v2-instruct) from [mediocredev](https://huggingface.co/mediocredev)
23
+
24
+
25
+ | Name | Quant method | Size |
26
+ | ---- | ---- | ---- |
27
+ | [open-llama-3b-v2-instruct.fp16.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.fp16.gguf) | fp16 | 6.85 GB |
28
+ | [open-llama-3b-v2-instruct.q2_k.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q2_k.gguf) | q2_k | 2.15 GB |
29
+ | [open-llama-3b-v2-instruct.q3_k_m.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q3_k_m.gguf) | q3_k_m | 2.27 GB |
30
+ | [open-llama-3b-v2-instruct.q4_k_m.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q4_k_m.gguf) | q4_k_m | 2.58 GB |
31
+ | [open-llama-3b-v2-instruct.q5_k_m.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q5_k_m.gguf) | q5_k_m | 2.76 GB |
32
+ | [open-llama-3b-v2-instruct.q6_k.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q6_k.gguf) | q6_k | 3.64 GB |
33
+ | [open-llama-3b-v2-instruct.q8_0.gguf](https://huggingface.co/afrideva/open-llama-3b-v2-instruct-GGUF/resolve/main/open-llama-3b-v2-instruct.q8_0.gguf) | q8_0 | 3.64 GB |
34
+
35
+
36
+
37
+ ## Original Model Card:
38
+ ## Prerequisites
39
+ In addition to pytorch and transformers, install required packages:
40
+ ```
41
+ pip install accelerate sentencepiece
42
+ ```
43
+ ## Usage
44
+ To use, copy the following script:
45
+ ```python
46
+ from transformers import AutoTokenizer, AutoModelForCausalLM
47
+ import transformers
48
+ import torch
49
+ model_id = 'mediocredev/open-llama-3b-v2-instruct'
50
+ tokenizer_id = 'mediocredev/open-llama-3b-v2-instruct'
51
+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_id)
52
+
53
+ pipeline = transformers.pipeline(
54
+ 'text-generation',
55
+ model=model_id,
56
+ tokenizer=tokenizer,
57
+ torch_dtype=torch.bfloat16,
58
+ device_map='auto',
59
+ )
60
+
61
+ system_message = 'You are a helpful assistant, who always provide explanation.'
62
+ user_message = 'How many days are there in a leap year?'
63
+
64
+ prompt = f'### System:\n{system_message}<|endoftext|>\n### User:\n{user_message}<|endoftext|>\n### Assistant:\n'
65
+ response = pipeline(
66
+ prompt,
67
+ max_length=1000,
68
+ repetition_penalty=1.05,
69
+ )
70
+ response = response[0]['generated_text']
71
+ print(response)
72
+
73
+ # Assistant: A leap year has 366 days. It's an extra day added to the calendar every four years to account for the extra time it takes for Earth to complete one full orbit around the Sun.
74
+ ```
75
+ ## Limitations
76
+
77
+ mediocredev/open-llama-3b-v2-instruct is based on LLaMA 3B v2. It can struggle with factual accuracy, particularly when presented with conflicting information or nuanced topics. Its outputs are not deterministic and require critical evaluation to avoid relying solely on its assertions. Additionally, its generative capabilities, while promising, can sometimes produce factually incorrect or offensive content, necessitating careful curation and human oversight. As an evolving model, LLaMA is still under development, and its limitations in areas like bias mitigation and interpretability are being actively addressed. By using this model responsibly and being aware of its shortcomings, we can unlock its potential while mitigating its risks.
78
+
79
+ ## Contact
80
+ Welcome any feedback, questions, and discussions. Feel free to reach out: [email protected]