zhongkaifu commited on
Commit
10f0372
1 Parent(s): f1805e5

Create appsettings.json

Browse files
Files changed (1) hide show
  1. appsettings.json +44 -0
appsettings.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Kestrel": {
3
+ "EndPoints": {
4
+ "Http": {
5
+ "Url": "http://*:7860"
6
+ }
7
+ }
8
+ },
9
+ "Logging": {
10
+ "LogLevel": {
11
+ "Default": "Information",
12
+ "Microsoft": "Warning",
13
+ "Microsoft.Hosting.Lifetime": "Information"
14
+ }
15
+ },
16
+ "AllowedHosts": "*",
17
+ "Title": "中文小说续写",
18
+ "Description": "输入一句或者几句话,AI帮你续写后面的故事",
19
+ "RepeatPenalty": 1,
20
+ "ContextSize": 768,
21
+ "Seq2Seq": {
22
+ "CompilerOptions": "--use_fast_math",
23
+ "GPUMemoryUsageRatio": 0.99,
24
+ "DeviceIds": "0",
25
+ "DistancePenalty": 2,
26
+ "MaxSrcTokenSize": 4096,
27
+ "MaxTgtTokenSize": 4096,
28
+ "ModelFilePath": "/code/bin/story_base.model",
29
+ "ProcessorType": "CPU",
30
+ "MKLInstructions": "AVX2",
31
+ "RepeatPenalty": 5,
32
+ "TokenGenerationStrategy": "Sampling",
33
+ "TopPSampling": 0.0,
34
+ "BeamSearchSize": 1,
35
+ "BlockedTokens": "",
36
+ "ModelType": "DecoderOnly"
37
+ },
38
+ "SourceSpm": {
39
+ "ModelFilePath": "/code/bin/chsYBSpm.model"
40
+ },
41
+ "TargetSpm": {
42
+ "ModelFilePath": "/code/bin/chsYBSpm.model"
43
+ }
44
+ }