Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BlinkDL/AI-Writer
/ functions
Functions
56 in github.com/BlinkDL/AI-Writer
⨍
Functions
56
◇
Types & classes
12
↓ 8 callers
Method
write
(self, name, value)
_new_/src/model.py:307
↓ 7 callers
Method
read
(self, name)
_new_/src/model.py:304
↓ 5 callers
Method
sample_logits
(self, out, x, ctx_len, temperature=1.0, top_p_usual=None, top_p_newline=None, allow_p=None)
_new_/src/utils.py:36
↓ 4 callers
Method
ctx_to_key
(self, ctx)
_new_/src/model.py:310
↓ 3 callers
Method
LN
(self, xx, w)
_new_/src/model.py:347
↓ 3 callers
Method
__init__
(self, config)
src/model.py:121
↓ 3 callers
Method
__init__
(self, rnn, layer_id)
_new_/src/model.py:137
↓ 3 callers
Function
myLog
(str)
web-client/index.js:3
↓ 3 callers
Method
run
(self, ctx_extra, shall_save=False)
_new_/src/model.py:388
↓ 3 callers
Method
save_stat
(self)
_new_/src/model.py:326
↓ 2 callers
Method
FF
(self, xx, w, name)
_new_/src/model.py:350
↓ 2 callers
Method
forward
(self, x)
_new_/src/model.py:152
↓ 2 callers
Method
load_stat
(self, code)
_new_/src/model.py:334
↓ 2 callers
Function
sendText
()
web-client/index.js:71
↓ 1 callers
Method
SA
(self, xx, w, name)
_new_/src/model.py:362
↓ 1 callers
Function
ai_print
(str)
_new_/run.py:55
↓ 1 callers
Method
clear_stat
(self)
_new_/src/model.py:313
↓ 1 callers
Function
connect
()
web-client/index.js:26
↓ 1 callers
Function
consumer
(websocket, msg)
server.py:107
↓ 1 callers
Function
consumer_handler
(websocket, path)
server.py:120
↓ 1 callers
Function
main
()
server.py:40
↓ 1 callers
Function
producer
()
server.py:77
↓ 1 callers
Function
producer_handler
(websocket, path)
server.py:93
↓ 1 callers
Method
refine_context
(self, context)
_new_/src/utils.py:26
↓ 1 callers
Function
rewriteText
()
web-client/index.js:80
↓ 1 callers
Function
run
(context)
_new_/run.py:58
Function
NeuralWorker
(queueZ, queueX)
server.py:159
Function
SocketWorker
(queueX, queueZ)
server.py:69
Method
__init__
(self, config, layer_id)
src/model.py:14
Method
__init__
(self, config, layer_id)
src/model.py:63
Method
__init__
(self, vocab_size, ctx_len, **kwargs)
src/model.py:94
Method
__init__
(self, config, layer_id)
src/model.py:102
Method
__init__
(self, WORD_NAME, UNKNOWN_CHAR = '\ue083')
_new_/src/utils.py:15
Method
__init__
(self, type, MODEL_NAME)
_new_/src/model.py:19
Method
__init__
(self, rnn, name)
_new_/src/model.py:49
Method
__init__
(self, rnn, name)
_new_/src/model.py:80
Method
__init__
(self, rnn)
_new_/src/model.py:164
Method
__init__
(self, cfg)
_new_/src/model.py:222
Method
forward
(self, x)
src/model.py:38
Method
forward
(self, x)
src/model.py:77
Method
forward
(self, x)
src/model.py:112
Method
forward
(self, idx, targets=None)
src/model.py:146
Method
forward
(self, x)
_new_/src/model.py:65
Method
forward
(self, x)
_new_/src/model.py:101
Method
forward
(self, idx, shall_save=False)
_new_/src/model.py:185
Method
get_ctx_len
(self)
src/model.py:143
Function
sample_logits
(logits, pos, temperature=1.0, top_p=None)
src/utils.py:14
Function
server
(websocket, path)
server.py:125
Function
set_seed
(seed)
src/utils.py:30
Function
set_seed
(seed)
_new_/src/utils.py:8
Function
signal_handler
(signal, frame)
server.py:58
Function
srv_exception
(loop, context)
server.py:145
Method
test_gpt
(self, ctx)
_new_/src/model.py:385
Function
to_float
(x)
src/utils.py:11
Function
to_float
(x)
_new_/src/model.py:13
Function
train_dataset
()
server.py:183