Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Granite Scripting/.DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions Granite Scripting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Model Openness Tool

This directory contains a Jupyter Notebook for generating model information using the Granite model locally.
The motivation behind this project is to develop a reliable and consistent AI agent as an alternative to commercial AI models.
The current code is a work in progress and experimental.
The main objective is to create a fundamental AI agent that can later serve as the foundation for integration and deployment on the MOT website.

## Work to do
* Parsing the query into chuncks
* Improving file search method
* Add huggingface supports
* Improve input prompt
* Created testbench
Binary file added Granite Scripting/src/.DS_Store
Binary file not shown.
1,116 changes: 1,116 additions & 0 deletions Granite Scripting/src/MOT.ipynb

Large diffs are not rendered by default.

Binary file added Granite Scripting/test/.DS_Store
Binary file not shown.
49 changes: 49 additions & 0 deletions Granite Scripting/test/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
fraframework:
name: 'Model Openness Framework'
version: '1.0'
date: '2024-12-15'
release:
name: 'Mistral-7B-Instruct-v0.2'
version: ''
date: ''
license:
distribution:
name: 'apache-2.0'
path: ''
code:
name: 'apache-2.0'
path: ''
data:
name: ''
path: ''
document:
name: ''
path: '"https://mistral.ai/terms/"
type: ''
architecture: 'MistralForCausalLM'
origin: ''
producer: 'mistralai'
contact: ''
components:
- name: 'Model architecture'
description: "Well commented code for the model's architecture"
license: unlicensed
component_path: ''

- name: 'Model parameters (Final)'
description: 'Trained model parameters, weights and biases'
license: ''
license_path: ''
component_path: '<https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2>'

- name: 'Model card'
description: 'Model details including performance metrics, intended use, and limitations'
license: ''
license_path: '<https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2>'
component_path: '<https://huggingface.co/docs/transformers/modelcard>' # Generic Hugging Face Model Card link

- name: 'Research paper'
description: 'Research paper detailing the development and capabilities of the model'
license: ''
license_path: 'arxiv:2310.06825'
component_path: '<https://arxiv.org/abs/2310.06825>' # ArXiv link
56 changes: 56 additions & 0 deletions Granite Scripting/test/test2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
```yaml
framework:
name: 'Model Openness Framework'
version: '1.0'
date: '2024-12-15'
release:
name: 'Mistral-7B-Instruct-v0.2'
version: 'v0.2'
date: ''
license:
distribution:
name: 'Apache 2.0'
path: 'license:apache-2.0'
code:
name: 'Apache 2.0'
path: 'license:apache-2.0'
type: 'text-generation'
architecture: 'MistralForCausalLM'
origin: 'mistralai'
producer: 'Mistral AI'
contact: ''
components:
- name: 'Model architecture'
description: "Well commented code for the model's architecture"
license: 'unlicensed'
component_path: 'transformersInfo.auto_model: AutoModelForCausalLM'

- name: 'Supporting libraries and tools'
description: "Libraries and tools used in the model's development (transformers, PyTorch)"
license: 'Apache 2.0'
license_path: 'license:apache-2.0'
component_path: 'transformers, pytorch'

- name: 'Model parameters (Final)'
description: 'Trained model parameters, weights and biases; stored in .safetensors files'
license: ''
license_path: ''
component_path: 'model-00001-of-00003.safetensors, model-00002-of-00003.safetensors, model-00003-of-00003.safetensors'

- name: 'Model metadata'
description: 'Training configuration and optimizer states; part of the Hugging Face model card'
license: 'Apache 2.0'
license_path: 'license:apache-2.0'
component_path: 'cardData'

- name: 'Model card'
description: 'Provided in the "cardData" section of the document'
license: 'Apache 2.0'
license_path: 'license:apache-2.0'
component_path: 'cardData'

- name: 'Research paper'
description: 'Research paper detailing the development and capabilities of the model'
license: ''
license_path: 'arxiv:2310.06825'
component_path: 'https://arxiv.org/abs/2310.06825'