zhongkaifu commited on
Commit
12dcd45
1 Parent(s): 3655f3e

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 Japanese or Korean, and AI will translate it to Chinese 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_cjk_chs.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/cjkSpm.model"
41
+ }
42
+ }