Discover and explore top open-source AI tools and projects—updated daily.
LechengKongOne graph model for all classification tasks
Top 100.0% on SourcePulse
OneForAll is a foundational graph learning framework designed to address cross-domain and cross-task classification problems using a single, unified model. It targets researchers and practitioners seeking to simplify the development and deployment of graph models across diverse datasets like citation networks and molecular graphs, and various task types including few-shot, zero-shot, and node-level classification. The primary benefit is achieving this versatility without modifying model parameters or architecture, significantly reducing complexity.
How It Works
OneForAll employs a novel approach by representing all graphs, nodes, and edges using natural language descriptions. These descriptions are then embedded into a shared semantic space using a Large Language Model (LLM). A key innovation is its "prompting paradigm," where task-specific information is converted into prompt graphs. The single model processes these prompts, enabling it to understand and adapt to different tasks and domains dynamically, facilitating cross-task generalization.
Quick Start & Requirements
conda env create -f environment.yml.python run_cdm.py --override e2e_all_config.yamlpython run_cdm.py --override lr_all_config.yaml./configs/task_config.yaml, e2e_all_config.yaml).gen_data.py, registering the dataset, and defining a splitter. A template CustomizedOFADataset class is available.environment.yml. Multi-GPU training is supported.Highlighted Details
Maintenance & Community
Recent updates include the implementation of multi-GPU training, bug fixes, and adjustments to dataset splits and prompt logic. The project has undergone a major revision involving code cleanup and bug fixes, requiring users of older versions to update. No specific community links (e.g., Discord, Slack) or notable contributors are mentioned in the provided text.
Licensing & Compatibility
The license type and any compatibility notes for commercial use or closed-source linking are not specified in the provided README content.
Limitations & Caveats
Adding custom datasets requires significant implementation effort, including data generation, splitting, and configuration. The recent major code revision necessitates users to update their local clones and potentially regenerate data/features. Understanding and modifying the YAML configuration files is crucial for effective use. The absence of explicit licensing information presents a potential adoption blocker.
1 year ago
Inactive
xlang-ai