zhongkaifu commited on
Commit
8bad9f8
1 Parent(s): fd29d9a

Create appsettings.json

Browse files
Files changed (1) hide show
  1. appsettings.json +42 -0
appsettings.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "Machine Translation Demo",
18
+ "Description": "Given one or a few sentences in Chinese, and AI will translate it to English for you.",
19
+ "Seq2Seq": {
20
+ "CompilerOptions": "--use_fast_math",
21
+ "GPUMemoryUsageRatio": 0.99,
22
+ "DeviceIds": "0",
23
+ "DistancePenalty": 2,
24
+ "MaxSrcTokenSize": 4096,
25
+ "MaxTgtTokenSize": 4096,
26
+ "ModelFilePath": "/code/bin/mt_chs_enu.model",
27
+ "ProcessorType": "CPU",
28
+ "MKLInstructions": "AVX2",
29
+ "RepeatPenalty": 5,
30
+ "TokenGenerationStrategy": "GreedySearch",
31
+ "TopPSampling": 0.0,
32
+ "BeamSearchSize": 1,
33
+ "BlockedTokens": "",
34
+ "ModelType": "EncoderDecoder"
35
+ },
36
+ "SourceSpm": {
37
+ "ModelFilePath": "/code/bin/cjkSpm.model"
38
+ },
39
+ "TargetSpm": {
40
+ "ModelFilePath": "/code/bin/enuSpm.model"
41
+ }
42
+ }