File size: 2,425 Bytes
de4a407 f67c91e de4a407 17b6d34 de4a407 4218de9 17b6d34 de4a407 17b6d34 de4a407 | 1 2 3 4 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | ---
license: other
license_name: mocha
license_link: LICENSE
datasets:
- theguywhosucks/mocha
language:
- en
pipeline_tag: text-generation
tags:
- english
- composition
- sentance_completion
---
# Mocha β
Mocha is a **sentence completion model** designed for lightweight, fast, and creative text generation.
Built with efficiency in mind, Mocha allows you to integrate natural language completion into your projects without the overhead of larger models.
<p align="center">
<img src="./banner.png" alt="Mocha Banner" width="600"/>
</p>
---
## π₯ Features
* β‘ **Lightweight** β optimized for speed and deployment.
* π **Sentence Completion** β generate contextually relevant endings for text prompts.
* π¦ **Safetensors Format** β stored in `.safetensors` for secure and efficient loading.
---
## π Project Structure
```
.
βββ mocha.safetensors # The model weights
βββ config.json
βββ generation_config.json
βββ itos.json
βββ stoi.json
βββ logo.png # Project logo
βββ banner.png # Project banner
βββ README.md
```
---
## π Usage
You can load Mocha with [π€ Transformers](https://github.com/huggingface/transformers) and [safetensors](https://github.com/huggingface/safetensors):
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("theguywhosucks/Mocha")
model = AutoModelForCausalLM.from_pretrained(
"theguywhosucks/Mocha",
torch_dtype=torch.float16
)
# Example usage
prompt = "The future of AI is"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```
---
## πΈ Assets
<p align="center">
<img src="./logo.png" alt="Mocha Logo" width="120"/>
</p>
---
## π οΈ Requirements
* Python 3.9+
* [Transformers](https://pypi.org/project/transformers/)
* [Safetensors](https://pypi.org/project/safetensors/)
* [PyTorch](https://pytorch.org/)
Install dependencies:
```bash
pip install torch transformers safetensors
```
---
## π License
This project is licensed under the **Mocha Proprietary License**.
Usage, distribution, and modification are restricted. Please see the [LICENSE](./LICENSE) file for full details.
---
β **Mocha** β lightweight sentence completion made simple.
|