gamma-lab / buffet Goto Github PK
View Code? Open in Web Editor NEWopen code examples and tutorials
License: MIT License
open code examples and tutorials
License: MIT License
run, update, and add the tutorial at https://github.com/SeanLee97/generate-lyrics-using-PyTorch
Add a QA demo system that can answer open-domain questions using multiple documents retrieved by the search engine
if you install numpy 1.14.5
rasa-core 0.11.4 has requirement numpy~=1.15, but you'll have numpy 1.14.5 which is incompatible.
if you install numpy 1.15
tensorflow 1.10.1 has requirement numpy<=1.14.5,>=1.13.3, but you'll have numpy 1.15.1 which is incompatible.
@harrywang @ksurya please let me know if you think the example should NOT be added here but the team dstc7 repo instead.
Would add a detailed workflow diagram for explaining how each component orchestra together.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-39-fee013fa6dac> in <module>()
1 # load weights
----> 2 q_network.net.load_state_dict(torch.load('./checkpoints/q_network_weights'))
~/Documents/sandbox/buffet/rl_pacman_demo/venv/lib/python3.6/site-packages/torch/serialization.py in load(f, map_location, pickle_module)
356 f = open(f, 'rb')
357 try:
--> 358 return _load(f, map_location, pickle_module)
359 finally:
360 if new_fd:
~/Documents/sandbox/buffet/rl_pacman_demo/venv/lib/python3.6/site-packages/torch/serialization.py in _load(f, map_location, pickle_module)
540 unpickler = pickle_module.Unpickler(f)
541 unpickler.persistent_load = persistent_load
--> 542 result = unpickler.load()
543
544 deserialized_storage_keys = pickle_module.load(f)
~/Documents/sandbox/buffet/rl_pacman_demo/venv/lib/python3.6/site-packages/torch/serialization.py in persistent_load(saved_id)
506 if root_key not in deserialized_objects:
507 deserialized_objects[root_key] = restore_location(
--> 508 data_type(size), location)
509 storage = deserialized_objects[root_key]
510 if view_metadata is not None:
~/Documents/sandbox/buffet/rl_pacman_demo/venv/lib/python3.6/site-packages/torch/serialization.py in default_restore_location(storage, location)
102 def default_restore_location(storage, location):
103 for _, _, fn in _package_registry:
--> 104 result = fn(storage, location)
105 if result is not None:
106 return result
~/Documents/sandbox/buffet/rl_pacman_demo/venv/lib/python3.6/site-packages/torch/serialization.py in _cuda_deserialize(obj, location)
73
74 if not torch.cuda.is_available():
---> 75 raise RuntimeError('Attempting to deserialize object on a CUDA '
76 'device but torch.cuda.is_available() is False. '
77 'If you are running on a CPU-only machine, '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location='cpu' to map your storages to the CPU.
what are those files, especially stores.md. what's the format.
@leon0707 add the template link in comment pls and keep this as simple as possible.
There are the different policy of rasa, the name 'policy' seems to be related with reinforcement learning. I need to check the source code in details to know how rasa handle different policy. And dig into this concept.
We could train a model and save the network weights in a file and upload to checkpoints for users who do not want to spend time to train.
specify the related hyper parameter values.
# save weights
torch.save(q_network.net.state_dict(), './checkpoints/q_network_weights')
# load weights
q_network.net.load_state_dict(torch.load('./checkpoints/q_network_weights'))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.