nicholascao commited on
Commit
105cae2
1 Parent(s): 39f2c92

expand seq_len to 1024

Browse files
Files changed (3) hide show
  1. README.md +5 -5
  2. config.json +1 -1
  3. pytorch_model.bin +2 -2
README.md CHANGED
@@ -11,13 +11,13 @@ pipeline_tag: text-generation
11
  tags:
12
  - chat
13
  widget:
14
- - text: "<Human>: Hello <eoh> <Assistant>:"
15
  example_title: "Hello"
16
- - text: "<Human>: 你好 <eoh> <Assistant>:"
17
  example_title: "你好"
18
- - text: "<Human>: What should I do if I can't sleep at night? <eoh> <Assistant>:"
19
  example_title: "insomnia"
20
- - text: "<Human>: 晚上睡不着应该怎么办? <eoh> <Assistant>:"
21
  example_title: "失眠"
22
  inference:
23
  parameters:
@@ -42,7 +42,7 @@ tokenizer.pad_token_id = tokenizer.eos_token_id
42
 
43
  model = AutoModelForCausalLM.from_pretrained('nicholascao/chatbloom-1b7-sft').half()
44
 
45
- inputs = tokenizer('<Human>: Hello <eoh> <Assistant>:', return_tensors='pt').to(torch.cuda.current_device())
46
  model.to(torch.cuda.current_device())
47
 
48
  output = model.generate(**inputs, max_length=768, do_sample=True, temperature=0.8, top_k=50, early_stopping=True, repetition_penalty=1.05)
 
11
  tags:
12
  - chat
13
  widget:
14
+ - text: "<Human>:Hello<Assistant>:"
15
  example_title: "Hello"
16
+ - text: "<Human>:你好<Assistant>:"
17
  example_title: "你好"
18
+ - text: "<Human>:What should I do if I can't sleep at night?<Assistant>:"
19
  example_title: "insomnia"
20
+ - text: "<Human>:晚上睡不着应该怎么办?<Assistant>:"
21
  example_title: "失眠"
22
  inference:
23
  parameters:
 
42
 
43
  model = AutoModelForCausalLM.from_pretrained('nicholascao/chatbloom-1b7-sft').half()
44
 
45
+ inputs = tokenizer('<Human>:Hello<Assistant>:', return_tensors='pt').to(torch.cuda.current_device())
46
  model.to(torch.cuda.current_device())
47
 
48
  output = model.generate(**inputs, max_length=768, do_sample=True, temperature=0.8, top_k=50, early_stopping=True, repetition_penalty=1.05)
config.json CHANGED
@@ -21,7 +21,7 @@
21
  "offset_alibi": 100,
22
  "pad_token_id": 3,
23
  "pretraining_tp": 2,
24
- "seq_length": 4096,
25
  "skip_bias_add": true,
26
  "skip_bias_add_qkv": false,
27
  "slow_but_exact": false,
 
21
  "offset_alibi": 100,
22
  "pad_token_id": 3,
23
  "pretraining_tp": 2,
24
+ "seq_length": 1024,
25
  "skip_bias_add": true,
26
  "skip_bias_add_qkv": false,
27
  "slow_but_exact": false,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:076ce6313d3e4895c711440cf34ee5205223b9bd26286fa2fa41e9ce2f92579d
3
- size 3444055875
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46eebad455425439b1dbf242f96c5d19317c0d4e14768a565ca5ca8d63a00ce6
3
+ size 3444047683