Run this model with HF Jobs
Run mac999/earthwork-net-model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mac999/earthwork-net-model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mac999/earthwork-net-model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mac999/earthwork-net-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mac999/earthwork-net-model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mac999/earthwork-net-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files51 unmodified lines5253545556575859606 unmodified lines676869707172732 unmodified lines7677787980818251 unmodified lines## Usage### Prerequisites- **Programming Language**: Python 3.8 or above.- **Libraries**: Install the required libraries using `pip install`. Detailed dependencies will be provided in the code files.### Data Preparation1. **Prepare Train Dataset**:- Prepare CAD cross-sectional drawings as input files and load it on Autocad. Run the below program to extract the entities per each cross-section in the drawing. In addition, you can define the earthwork item's layer name in config.json.6 unmodified linespython prepare_dataset.py --input output/ --output dataset/```2. **Training Data**:- Features are tokenized into sequences for MLP, LSTM, Transformers, and LLM models. We'll upload the train source file after arrangement.```bashpython train_ena_model.py --model_type [MLP|LSTM|Transformer|LLM]2 unmodified lines3. **Run and Test ENA model**:- Run the below program to run and test the each ENA model. It will generate log and graph image files to check the performance.```bashpython ena_run_model.py --model_type [MLP|LSTM|Transformer|LLM]```### Training and Evaluation51 unmodified lines525354555657585960616263646 unmodified lines717273747576772 unmodified lines8081828384858651 unmodified lines## Usage### Prerequisites- **Programming Language**: Python 3.8 or above. PyTorch (torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118)- **Libraries**: Install the required libraries using `pip install`. Detailed dependencies will be provided in the code files.```bashpip install json os re logging torch numpy matplotlib seaborn transformers scikit-learn tqdmpip install pandas scipy trimesh laspy open3d pyautocad pywin32```### Data Preparation1. **Prepare Train Dataset**:- Prepare CAD cross-sectional drawings as input files and load it on Autocad. Run the below program to extract the entities per each cross-section in the drawing. In addition, you can define the earthwork item's layer name in config.json.6 unmodified linespython prepare_dataset.py --input output/ --output dataset/```2. **Training Data (TBD)**:- Features are tokenized into sequences for MLP, LSTM, Transformers, and LLM models. We'll upload the train source file after arrangement.```bashpython train_ena_model.py --model_type [MLP|LSTM|Transformer|LLM]2 unmodified lines3. **Run and Test ENA model**:- Run the below program to run and test the each ENA model. It will generate log and graph image files to check the performance.```bashpython ena_run_model.py```### Training and Evaluation
README.md+8-4