MAIRK commited on
Commit
b329e7f
·
verified ·
1 Parent(s): 1a7b462

Upload README.md

Browse files

# My LLaMA 2 Chatbot (7B)

This repository contains a **fine-tuned bilingual conversational model** based on **LLaMA 2 7B**, built for Chinese and English dialogue tasks.

## 🚀 Model Overview

- **Base Model**: LLaMA 2 7B
- **Languages**: Chinese (zh), English (en)
- **Model Size**: 7 billion parameters
- **Training Data**:
- Chinese dialogue (Weibo, Zhihu)
- English dialogue (Reddit, StackExchange)
- Domain Q&A (IT, healthcare, finance)

## 📦 Files

| File | Description |
|------------------------|------------------------------------------|
| `config.json` | Model architecture config |
| `pytorch_model.bin` | Model weights |
| `tokenizer.model` | SentencePiece tokenizer model |
| `tokenizer_config.json`| Tokenizer configuration |
| `special_tokens_map.json` | Token ID mapping for special tokens |
| `generation_config.json` | Optional generation settings |
| `README.md` | Model card & usage |

## ✨ Usage Example

```python
from transformers import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("your-username/my-llama2-chatbot", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("your-username/my-llama2-chatbot")

prompt = "你好,请问你是谁?"
inputs = tokenizer(prompt, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(out[0], skip_special_tokens=True))
```

## 🔐 License

This model is released under the MIT license. If using Meta's weights, you must agree to [LLaMA 2 license terms](https://ai.meta.com/resources/models-and-libraries/llama-downloads/).

## 📈 Metrics

- **C-Eval EM**: 68.3%
- **GPT4Bot-Bench F1**: 72.1%
- **SelfChat Similarity**: 0.87

## 🤗 Hosted on Hugging Face

See: [https://huggingface.co/your-username/my-llama2-chatbot](https://huggingface.co/your-username/my-llama2-chatbot)

---

For support, improvements or questions, please open an issue or pull request.

1 file changed +57
README.mdAdded+57