初始化项目,由ModelHub XC社区提供模型

Model: silvercoder67/Mistral-7b-instruct-v0.2-summ-sft-e2m
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-30 02:56:24 +08:00
commit 5b20149dc7
12 changed files with 91595 additions and 0 deletions

30
README.md Normal file
View File

@@ -0,0 +1,30 @@
---
license: cc-by-nc-4.0
---
Description to load and test will be added soon. More details on training and data will be added aswell.
### **Loading the Model**
Use the following Python code to load the model:
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
TBD
```
### **Generating Text**
To generate text, use the following Python code:
```python
text = "Hi, my name is "
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```