Text Generation
Transformers
Safetensors
English
t5
text2text-generation
bpmn
Business Process
text-generation-inference
Instructions to use fachati/TXT2BPMN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fachati/TXT2BPMN with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fachati/TXT2BPMN")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("fachati/TXT2BPMN") model = AutoModelForSeq2SeqLM.from_pretrained("fachati/TXT2BPMN") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use fachati/TXT2BPMN with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fachati/TXT2BPMN" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fachati/TXT2BPMN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fachati/TXT2BPMN
- SGLang
How to use fachati/TXT2BPMN with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "fachati/TXT2BPMN" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fachati/TXT2BPMN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "fachati/TXT2BPMN" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fachati/TXT2BPMN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fachati/TXT2BPMN with Docker Model Runner:
docker model run hf.co/fachati/TXT2BPMN
Update README.md
#2
by imadait - opened
README.md
CHANGED
|
@@ -1,49 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
## Key Features
|
| 19 |
-
- **Language Model Base**: T5-Small, known for its efficiency and efficacy in understanding and generating text.
|
| 20 |
-
- **Specialization**: Fine-tuned specifically for BPMN generation, improving accuracy and relevancy in business process modeling.
|
| 21 |
-
- **Dataset**: Trained on a comprehensive dataset consisting of 30,000 pairs of text descriptions and corresponding BPMN diagrams, ensuring diverse exposure to various business process scenarios.
|
| 22 |
-
|
| 23 |
-
## Applications
|
| 24 |
-
- **Business Process Management**: Automates the generation of BPMN diagrams, which are crucial for documenting and improving business workflows.
|
| 25 |
-
- **AI Research and Development**: Provides a research basis for further exploration into the integration of NLP and business process management.
|
| 26 |
-
- **Educational Tool**: Assists in teaching the concepts of BPMN and AI's role in business process automation.
|
| 27 |
-
|
| 28 |
-
## Configuration
|
| 29 |
-
- **Pre-trained Model**: Google's T5-Small
|
| 30 |
-
- **Training Environment**: Utilized a dataset from "MaD: A Dataset for Interview-based BPM in Business Process Management" for training and validation.
|
| 31 |
-
- **Hardware Used**: Intel Core i7 with 24 GB RAM and Intel HD Graphics 630.
|
| 32 |
-
|
| 33 |
-
## Usage
|
| 34 |
-
The model is intended for use by developers, researchers, and business analysts interested in automating BPMN generation from textual descriptions. It can be integrated into business software systems or used in standalone applications for process modeling.
|
| 35 |
-
|
| 36 |
-
## Model Performance
|
| 37 |
-
The model has shown promising results in terms of syntactic integrity and logical fidelity in the generated BPMN diagrams. Detailed performance metrics and evaluations are included in the full project documentation.
|
| 38 |
-
|
| 39 |
-
## Installation and Requirements
|
| 40 |
-
The model can be accessed and installed via the Hugging Face model hub. Requirements for using this model include Python 3.6 or newer and access to a machine with adequate computational capabilities to run inference with the T5 architecture.
|
| 41 |
-
|
| 42 |
-
## How to Use
|
| 43 |
-
For detailed instructions on how to integrate and use the TXT2BPMN model in your projects, please refer to the official documentation available in the model's repository on Hugging Face.
|
| 44 |
-
|
| 45 |
-
## Contributions
|
| 46 |
-
Developed by Omar El Fachati as part of a Master's thesis. The project was supervised by academic and industry professionals.
|
| 47 |
-
|
| 48 |
-
## Contact Information
|
| 49 |
-
For further assistance or collaboration opportunities, contact me on my [LinkedIn](https://www.linkedin.com/in/fachati/).
|
|
|
|
| 1 |
+
Start Event: APK received
|
| 2 |
+
|
| 3 |
+
Task: Verify APK integrity
|
| 4 |
+
Task: Extract manifest and bytecode using Androguard
|
| 5 |
+
Task: Disassemble APK with Apktool
|
| 6 |
+
Task: Analyze manifest
|
| 7 |
+
Task: Check exported activities
|
| 8 |
+
Task: Check exported services
|
| 9 |
+
Task: Extract declared permissions
|
| 10 |
+
Task: Check sensitive configurations (debuggable, allowBackup, cleartextTrafficPermitted)
|
| 11 |
+
Task: Evaluate risks based on findings
|
| 12 |
+
Decision: Are there critical issues?
|
| 13 |
+
Yes -> Task: Flag APK as high risk
|
| 14 |
+
No -> Task: Mark APK as safe
|
| 15 |
+
Task: Store analysis results in SQLite database
|
| 16 |
+
End Event: Analysis complete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|