Text Generation
PEFT
Safetensors
English
mistral
microsoft365
sharepoint
data-management
lora
conversational
4-bit precision
bitsandbytes
Instructions to use Trinoid/Data_Management_Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Trinoid/Data_Management_Mistral with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,75 +1,76 @@
|
|
| 1 |
-
---
|
| 2 |
-
language:
|
| 3 |
-
- en
|
| 4 |
-
tags:
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
- **
|
| 26 |
-
- **
|
| 27 |
-
- **
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
-
|
| 37 |
-
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
#
|
| 54 |
-
#
|
| 55 |
-
#
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
- The model
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- text-generation
|
| 6 |
+
- mistral
|
| 7 |
+
- microsoft365
|
| 8 |
+
- sharepoint
|
| 9 |
+
- data-management
|
| 10 |
+
- lora
|
| 11 |
+
license: apache-2.0
|
| 12 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Microsoft 365 Data Management Tuned Mistral Model
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) that has been optimized for Microsoft 365 data management tasks.
|
| 18 |
+
|
| 19 |
+
## Model Description
|
| 20 |
+
|
| 21 |
+
This model has been fine-tuned using LoRA on Microsoft 365 data management documentation to help users efficiently manage SharePoint, OneDrive, and other Microsoft 365 services.
|
| 22 |
+
|
| 23 |
+
### Training Procedure
|
| 24 |
+
|
| 25 |
+
- **Training framework:** 🤗 Transformers and PEFT (LoRA)
|
| 26 |
+
- **Base model:** mistralai/Mistral-7B-Instruct-v0.2
|
| 27 |
+
- **Training data:** Microsoft 365 data management documentation
|
| 28 |
+
- **Hardware used:** Azure ML
|
| 29 |
+
|
| 30 |
+
## Intended Use and Limitations
|
| 31 |
+
|
| 32 |
+
This model is intended to be used for Microsoft 365 data management tasks such as:
|
| 33 |
+
|
| 34 |
+
- Managing SharePoint document libraries
|
| 35 |
+
- Setting up retention policies
|
| 36 |
+
- Configuring data loss prevention
|
| 37 |
+
- Managing access permissions
|
| 38 |
+
- Implementing compliance features
|
| 39 |
+
|
| 40 |
+
## Evaluation Results
|
| 41 |
+
|
| 42 |
+
The model provides fast, efficient responses for Microsoft 365 data management tasks with high accuracy and low latency.
|
| 43 |
+
|
| 44 |
+
## Usage
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 48 |
+
|
| 49 |
+
model_name = "[YOUR_HF_USERNAME]/microsoft365-mistral"
|
| 50 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 51 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 52 |
+
|
| 53 |
+
# For 4-bit quantization (optional)
|
| 54 |
+
# from transformers import BitsAndBytesConfig
|
| 55 |
+
# quantization_config = BitsAndBytesConfig(load_in_4bit=True)
|
| 56 |
+
# model = AutoModelForCausalLM.from_pretrained(model_name, quantization_config=quantization_config)
|
| 57 |
+
|
| 58 |
+
prompt = "How do I set up retention policies in SharePoint Online?"
|
| 59 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 60 |
+
|
| 61 |
+
outputs = model.generate(
|
| 62 |
+
inputs.input_ids,
|
| 63 |
+
max_new_tokens=500,
|
| 64 |
+
do_sample=True,
|
| 65 |
+
temperature=0.7,
|
| 66 |
+
top_p=0.9
|
| 67 |
+
)
|
| 68 |
+
|
| 69 |
+
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
|
| 70 |
+
print(response)
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Limitations
|
| 74 |
+
|
| 75 |
+
- The model's knowledge is limited to Microsoft 365 features and documentation it was trained on
|
| 76 |
+
- The model may not be fully up-to-date with the latest Microsoft 365 features released after training
|