SuperAPIAI Directory

galai

github.com · Other AI tools

galai is a Python API wrapper for the GALACTICA scientific language model developed by Papers with Code. GALACTICA is a general-purpose scientific language model trained on a large amount of scientific text and data, capable of performing scientific NLP tasks as well as tasks such as citation prediction, mathematical reasoning, molecular property prediction, and protein annotation. The repository provides five models, with weights and model cards available on the Hugging Face Hub, and supports out-of-the-box use with the transformers library. Users can perform inference through the high-level pipeline API or the low-level OPTForCausalLM class. Since the model has not been instruction-tuned, specific prompts and special tokens are required to achieve good results. The repository documentation provides prompt examples for tasks such as citation prediction, LaTeX generation, molecule generation, protein annotation, free generation, question answering, summarization, entity extraction, and IUPAC name prediction.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

galai is the model API repository for the GALACTICA scientific language model, maintained by Papers with Code. GALACTICA is a general-purpose scientific language model trained on a large-scale corpus of scientific text and data, capable of performing high-level scientific NLP tasks and supporting specialized tasks such as citation prediction, mathematical reasoning, molecular property prediction, and protein annotation.

Main capabilities: The repository documentation states that GALACTICA provides five models; see the repository documentation for details. Model weights, model cards, and inference components are available on the Hugging Face Hub, and all models can be used directly through the transformers library. Users can run inference using the high-level pipeline API, or use the low-level OPTForCausalLM class for finer-grained control. The model cards describe usage on CPU, GPU, and at different precisions.

Usage: GALACTICA is a standalone language model that has not been instruction-tuned, so correct prompts are required to achieve good results. The repository documentation lists special tokens and prompt styles, and demonstrates several task examples with the standard 6.7B model: citation prediction requires [START_REF]; LaTeX prediction and reasoning use the special <work> token; prompt formulations are also shown for molecule generation, protein annotation, free-form generation, question answering, summarization, entity extraction, and IUPAC name prediction. In free generation, you can try disabling new_doc=True to simulate mid-document completion; when starting a document, new_doc=True should be set and the start-of-document token used; Wikipedia-style articles, lecture notes, and GitHub repositories can begin with #, while paper documents can begin with Title; the common question-answering format is "Question: question.\n\nAnswer:"; for summarization, "TLDR:" can be added; for entity extraction, a question can be appended after the document; IUPAC name prediction is performed by completion based on a PubChem document prompt.

Applicable scenarios: Suitable for research and experimentation on scientific text processing, research assistance, citation prediction, mathematical reasoning, and molecule- and protein-related prediction tasks.

Limitations: The model has not been instruction-tuned, and results depend heavily on the correct use of prompts and special tokens; the repository does not provide specific information such as pricing, cost, platform support scope, or performance metrics, and these contents are not currently available.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools