Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model hosting #1

Open
JViggiani opened this issue Jan 3, 2024 · 3 comments
Open

Model hosting #1

JViggiani opened this issue Jan 3, 2024 · 3 comments

Comments

@JViggiani
Copy link

Hello! Very interesting implementation. Do you have a trained model hosted available anywhere for downloading?

Thank you

@bosung
Copy link
Collaborator

bosung commented Jan 8, 2024

Hi, thank you for your interest in ZETT! Currently, we don't have any published models online, but training a model takes less than 10 minutes for each split (based on TITAN RTX 24GB). Hope this helps!

@JViggiani
Copy link
Author

That's okay, I managed to get it working. I'm very impressed by the training time and the speed at which it trained.

I have a somewhat unrelated question around the automatic template generation. I see in wrapper.py there is a function:

    def load_test_auto_templ(self):
        raise NotImplementedError("Use this class: AutoTemplExtractor")

And this is called in:

    def generate_entity_span(self, 
                            data: Sentence, 
                            generator: TextGenerator, 
                            tokenizer: Union[PreTrainedTokenizerFast, AutoTokenizer], 
                            target_labels: List[str], 
                            mode: str, 
                            task_type: str, 
                            use_label_constraint: bool) -> List[dict]:
      # ...

        if mode in ["auto_templ_single", "auto_templ_multi"]:
            test_auto_templs = self.load_test_auto_templ()

    # ...

                for k in final_target_labels:
                if mode in ["auto_templ_single", "auto_templ_multi"]:
                    input_text = []
                    for nt in range(min(self.top_n_templ, len(test_auto_templs[k]))):
                        _templ = test_auto_templs[k][nt]
                        # ...
                else:
                    _templ = self.relname2template[k]   
                    # ... 

Is this automatic template generation implemented anywhere and hosted somewhere else? Thank you! :)

@bosung
Copy link
Collaborator

bosung commented Jan 18, 2024

This is the code for auto-generated templates by LLM, which was one of our experiments, but not included to the paper since the performance was not good enough. Maybe I should've deleted this part -- sorry for your confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants