Downloads · 30 days
39
27% of all-time downloads
theguywhosucks/mochaV1-base
mochaV1-base is a text generation model from theguywhosucks. Use it when you need the model to write or continue text. The card lists the license as other.
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 th…
Downloads · 30 days
39
27% of all-time downloads
All-time downloads
145
Public
Parameters
25.3M
101 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors101 MB · 100%
From the Hugging Face model README
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>.safetensors for secure and efficient loading..
├── mocha.safetensors # The model weights
├── config.json
├── generation_config.json
├── itos.json
├── stoi.json
├── logo.png # Project logo
├── banner.png # Project banner
└── README.md
You can load Mocha with 🤗 Transformers and safetensors:
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))
Install dependencies:
pip install torch transformers safetensors
This project is licensed under the Mocha Proprietary License. Usage, distribution, and modification are restricted. Please see the LICENSE file for full details.
☕ Mocha – lightweight sentence completion made simple.