Downloads · 30 days
59
2% of all-time downloads
teleprint-me/refact-1.6b-fim
refact-1.6b-fim is a text generation model from teleprint-me. Use it when you need the model to write or continue text. The card lists the license as bigscience-openrail-m.
The Refact 1.6B FIM GGUF model is a state-of-the-art AI-powered coding assistant developed by Small Magellanic Cloud AI Ltd. This model is designed to assist developers with code completion, refactoring, and chat-base…
Downloads · 30 days
59
2% of all-time downloads
All-time downloads
3.7K
Public
Repo size
21.2 GB
Likes
5
Public
Click a slice to open those files.
.gguf3.2 GB · 100%
From the Hugging Face model README
The Refact 1.6B FIM GGUF model is a state-of-the-art AI-powered coding assistant developed by Small Magellanic Cloud AI Ltd. This model is designed to assist developers with code completion, refactoring, and chat-based interactions, excelling in code-related natural language understanding and generation tasks.
The model is versatile and can be employed for:
Here's a sample shell command to invoke the model:
# Sample shell command to use the model
./main -m models/smallcloudai/Refact-1_6B-fim/ggml-model-f16.gguf -n 300 -p "write a function to multiply two integers in python" --temp 1.0 --top-p 1.0 --top-k 1 --repeat_penalty 1.0
The model outperforms many existing models in both code completion and chat-based interactions, as evidenced by the HumanEval results.
| Model | Size | HumanEval pass@1 | HumanEval pass@10 |
|---|---|---|---|
| Refact-1.6-fim | 1.6b | 32.0% | 53.0% |
| StableCode | 3b | 20.2% | 33.8% |
| ReplitCode v1 | 3b | 21.9% | N/A |
The model can be integrated into your IDE via the Refact plugin. For self-hosting, an open-source Docker container is available.
The model primarily focuses on English text, which may result in lower performance for non-English languages.
The model is licensed under the BigScience OpenRAIL-M v1 license agreement.
If you use this model in your work, please cite it by linking back to the following page for proper attribution:
Special thanks to ds5t5 for their contribution in implementing the source for converting the model's tensors from Hugging Face to GGUF format. Their work has been instrumental in enhancing the model's versatility.
To test the model against Hugging Face, you can use the following command:
# Example command for testing against Hugging Face
python convert-hf-to-gguf.py models/smallcloudai/Refact-1_6B-fim
./main --color -e -s 1 -c 256 -n 256 -m ./models/smallcloudai/Refact-1_6B-fim/ggml-model-f16.gguf -p "def multiply(a: int, b: int) -> int:"
This resolves llama.cpp issue #3061.