Downloads · 30 days
30
3% of all-time downloads
JabirTech/choqok-1B-0.0-alpha-1
choqok-1B-0.0-alpha-1 is a text generation model from JabirTech. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Choqok (Persian: چغوک) is a small language model or SLM which is based on Meta's LLaMA 3.2 1B and fine tuned on Persian data. This is the very first alpha of Choqok and you can use it freely and commercially in any wa…
Downloads · 30 days
30
3% of all-time downloads
All-time downloads
1.2K
Public
Parameters
1.2B
2.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Choqok (Persian: چغوک) is a small language model or SLM which is based on Meta's LLaMA 3.2 1B and fine tuned on Persian data. This is the very first alpha of Choqok and you can use it freely and commercially in any ways you like!
Choqok is part of Jabir Project which is a project by Muhammadreza Haghiri in order to make democratized AI products and this will be our literal on device model we've made.
Choqok in Khorasani (or Mashhadi) accent of Persian is a bird similar to swallow. Since it is a small model, we've decided to call this model Choqok as well.
<p align="center"> <img src="https://mann-e-images.storage.c2.liara.space/a47bb0fc-c49b-4bca-82b1-c0973f3b33fa.png" width=640> </p>This model requires about 3GB of VRAM to run (not tested on CPU, but it might not be a big deal to run this model on a machine with 4GB+ RAM as well). You also need a very basic knowledge of Python and know how to work with transformers library.
First step is to install the transformers library:
pip install transformers
Then, you must load dependencies from the library:
import transformers
import torch
Then, you have to initialize a pipeline:
model_id = "JabirTech/choqok-1B-0.0-alpha-1"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
And now, you can do the inference:
messages = [
{"role": "user", "content": "Write a python code for calculation of the factorial of X using recursive functions"},
]
outputs = pipeline(
messages,
max_new_tokens=4096,
)
print(outputs[0]["generated_text"][-1]['content'])
You also can use our OpenAI compatible API and put the model on choqok to test this. API documentations are available at this link.
You also can use Jabir Project's Chat UI in order to use the model. Just put it on Choqok and start using it.
<p align="center"> <img src="https://mann-e-images.storage.c2.liara.space/a4bd5888-66ac-4e4b-b1ba-d160b164e9fa.png" width=640> </p>