Comments (1)
With python ./data/t5minimize_ere.py ./data/conll04_ere
it generated the file: train_dev.t5-small.jsonline
Now I am getting this new error:
(asp) ➜ ASP git:(master) ✗ python evaluate_ere.py flant5_base_conll04 tliu/asp-re-flan-t5-base 0
02/26/2024 10:56:10 - INFO - util.func - Running experiment: flant5_base_conll04
02/26/2024 10:56:11 - INFO - util.func - task = "ere"
dataset = "conll04"
data_dir = "/home/kushwaha/Projects/ASP/data/conll04_ere/"
model_dir = "/home/kushwaha/Projects/ASP/data/conll04_ere/"
log_root = "/home/kushwaha/Projects/ASP/data/conll04_ere/"
max_segment_len = 256
use_amp = true
optimizer = "adamw"
plm_learning_rate = 5e-05
task_learning_rate = 0.0001
plm_scheduler = "linear_with_warmup"
task_scheduler = "linear_with_warmup"
warmup_ratio = 0.05
adam_eps = 1e-08
adam_weight_decay = 0.1
init_std = 0.02
max_grad_norm = 1
batch_size = 8
gradient_accumulation_steps = 1
num_epochs = 200
activation = "relu"
dropout_rate = 0.3
feature_emb_size = 20
hidden_size = 1500
num_typing_classes = 4
num_linking_classes = 5
beam_size = 1
eval_frequency = 500
report_frequency = 20
plm_tokenizer_name = "t5-small"
plm_pretrained_name_or_path = "google/flan-t5-base"
log_dir = "/home/kushwaha/Projects/ASP/data/conll04_ere/flant5_base_conll04"
tb_dir = "/home/kushwaha/Projects/ASP/data/conll04_ere/tensorboard"
02/26/2024 10:56:11 - INFO - /home/kushwaha/Projects/ASP/util/runner.py - Log file path: /home/kushwaha/Projects/ASP/data/conll04_ere/flant5_base_conll04/log_Feb26_10-56-10.txt
02/26/2024 10:56:11 - INFO - util.tensorize_ere - Tensorizing examples from /home/kushwaha/Projects/ASP/data/conll04_ere/train_dev.t5-small.jsonlines; results will be cached in /home/kushwaha/Projects/ASP/data/conll04_ere/cached.tensors.t5-small.bin
Traceback (most recent call last):
File "evaluate_ere.py", line 24, in <module>
evaluate(config_name, gpu_id, saved_suffix)
File "evaluate_ere.py", line 7, in evaluate
runner = ERERunner(
File "/home/kushwaha/Projects/ASP/util/runner.py", line 76, in __init__
self.data = EREDataProcessor(self.config)
File "/home/kushwaha/Projects/ASP/util/tensorize_ere.py", line 63, in __init__
tensor_samples = [tensorizer.tensorize_example(sample, is_training) for sample in samples]
File "/home/kushwaha/Projects/ASP/util/tensorize_ere.py", line 63, in <listcomp>
tensor_samples = [tensorizer.tensorize_example(sample, is_training) for sample in samples]
File "/home/kushwaha/Projects/ASP/util/tensorize_ere.py", line 180, in tensorize_example
action_labels = self.get_action_labels(target_ids)
File "/home/kushwaha/Projects/ASP/util/tensorize_ere.py", line 125, in get_action_labels
action_labels = torch.where(
TypeError: where(): argument 'input' (position 2) must be Tensor, not int
It is because I am running on a CPU machine?
from asp.
Related Issues (17)
- Missing 'conll03_to_json.py' HOT 1
- pyhocon: Cannot resolve variable ${t5_3b_ace05_wu08}
- Missing test evaluation HOT 2
- Upload the finetuned model please HOT 2
- How can I make prediction from a text file HOT 5
- RuntimeError: Device index must not be negative HOT 1
- How to understand the predicted relations
- coref HOT 3
- Model inputs HOT 4
- run_ner.py error:Is this error related to the path of Pretrained LM? HOT 2
- Pretrained Models HOT 6
- Issue with installing Apex. Any option to run code without it? HOT 3
- About entity's right boundary in ERE HOT 1
- GPU Memory HOT 1
- Missing entities on data preparation with conll03_to_json.py
- missing requirements.txt
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 asp.