RocketFlash:

Will it be correct to create a global list and store data there or will there be conflicts with writing to the list?


By “global list”, you mean Python global variable? And this will create a global list per process? Who will be writing to the global list? BTW, any reason for not using nn.Embedding 1?