Comments (2)
I also need a code example. I was trying to run of_hfmodel.py by typing python of_hfmodel.py
in the command line prompt. But I believe it needs to read in another argument because I saw the following part in the code (note the sys.argv[1]
):
with open(sys.argv[1]) as f:
cfg = yaml.safe_load(f)
hfmodel = cfg["hfmodel"]
BATCH_SIZE = cfg["batch_size"]
BEFORE_EXAMPLE = cfg["before_example"]
AFTER_EXAMPLE = cfg["after_example"]
IN_KEY = cfg["in_key"]
OUT_KEY = cfg["out_key"]
ref_key = cfg["ref_key"]
save_dir = cfg["save_dir"]
save_file = cfg["save_file"]
few_shot_prompt_path = cfg["few_shot_prompt_path"]
STOP = cfg["stop"]
max_tokens = cfg["max_tokens"]
split = cfg["split"]
I believe cfg
is some kind of dataset, but I don't know what it is and where to find it.
from proofnet.
cfg
is a config file, which are located in eval/configs
. So if you're in the eval
directory example usage is python of_hfmodel.py configs/pythia-6.9b_6shot_formalize.yaml
.
from proofnet.
Related Issues (7)
- Dummit and Foote Chapter 1 HOT 1
- 2 is not irrational HOT 2
- Building Errors HOT 1
- A few more building errors HOT 3
- mistakes in proofnet.png? HOT 1
- Some flaws in Munkres.lean HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proofnet.