Text Generation
Transformers
Safetensors
falcon
text-generation-inference
File size: 1,532 Bytes
d6b2220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07d8acb
d6b2220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8d494d
07d8acb
e8d494d
07d8acb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
datasets:
- tiiuae/falcon-refinedweb
- nRuaif/wizard_alpaca_dolly_orca
language:
- en
- de
- es
- fr
inference: false
license: unknown
---





# ๐Ÿ‡ฐ๐Ÿ‡ท quantumaikr/falcon-180B-chat-instruct

**quantumaikr/falcon-180B-chat-instruct is a 180B parameters causal decoder-only model built by [quantumaikr](https://www.quantumai.kr) based on [Falcon-180B-chat](https://huggingface.co/tiiuae/falcon-180B-chat)**



## How to Get Started with the Model

To run inference with the model in full `bfloat16` precision you need approximately 8xA100 80GB or equivalent.


```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model = "quantumaikr/falcon-180B-chat-instruct"

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    torch_dtype=torch.bfloat16,
    trust_remote_code=True,
    device_map="auto",
)
sequences = pipeline(
   "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
    max_length=200,
    do_sample=True,
    top_k=10,
    num_return_sequences=1,
    eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
    print(f"Result: {seq['generated_text']}")

``` 


## Contact

๐Ÿ‡ฐ๐Ÿ‡ท www.quantumai.kr

๐Ÿ‡ฐ๐Ÿ‡ท hi@quantumai.kr [์ดˆ๊ฑฐ๋Œ€์–ธ์–ด๋ชจ๋ธ ๊ธฐ์ˆ ๋„์ž… ๋ฌธ์˜ํ™˜์˜]