TechxGenus / Typst-Coder-1.5B

huggingface.co
Total runs: 34
24-hour runs: 0
7-day runs: 26
30-day runs: 26
Model's Last Updated: November 06 2024
text-generation

Introduction of Typst-Coder-1.5B

Model Details of Typst-Coder-1.5B

Typst-Coder

[🤖Models] | [🛠️Code] | [📊Data] |



Introduction

While working with Typst documents, we noticed that AI programming assistants often generate poor results. I understand that these assistants may perform better in languages like Python and JavaScript, which benefit from more extensive datasets and feedback signals from executable code, unlike HTML or Markdown. However, current LLMs even frequently struggle to produce accurate Typst syntax, including models like GPT-4o and Claude-3.5-Sonnet.

Upon further investigation, we found that because Typst is a relatively new language, training data for it is scarce. GitHub's search tool doesn't categorize it as a language for code yet, and The Stack v1/v2 don’t include Typst. No open code LLMs currently list it as a supported language, either. To address this, we developed this project aimed at collecting relevant data and training models to improve Typst support in AI programming tools.

Usage

An example script is shown below:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("TechxGenus/Typst-Coder-1.5B")
model = AutoModelForCausalLM.from_pretrained(
    "TechxGenus/Typst-Coder-1.5B",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [
    {"role": "user", "content": "Hi!"},
]
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

inputs = tokenizer.encode(prompt, return_tensors="pt")
outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=512)
print(tokenizer.decode(outputs[0]))

Runs of TechxGenus Typst-Coder-1.5B on huggingface.co

34
Total runs
0
24-hour runs
1
3-day runs
26
7-day runs
26
30-day runs

More Information About Typst-Coder-1.5B huggingface.co Model

More Typst-Coder-1.5B license Visit here:

https://choosealicense.com/licenses/apache-2.0

Typst-Coder-1.5B huggingface.co

Typst-Coder-1.5B huggingface.co is an AI model on huggingface.co that provides Typst-Coder-1.5B's model effect (), which can be used instantly with this TechxGenus Typst-Coder-1.5B model. huggingface.co supports a free trial of the Typst-Coder-1.5B model, and also provides paid use of the Typst-Coder-1.5B. Support call Typst-Coder-1.5B model through api, including Node.js, Python, http.

Typst-Coder-1.5B huggingface.co Url

https://huggingface.co/TechxGenus/Typst-Coder-1.5B

TechxGenus Typst-Coder-1.5B online free

Typst-Coder-1.5B huggingface.co is an online trial and call api platform, which integrates Typst-Coder-1.5B's modeling effects, including api services, and provides a free online trial of Typst-Coder-1.5B, you can try Typst-Coder-1.5B online for free by clicking the link below.

TechxGenus Typst-Coder-1.5B online free url in huggingface.co:

https://huggingface.co/TechxGenus/Typst-Coder-1.5B

Typst-Coder-1.5B install

Typst-Coder-1.5B is an open source model from GitHub that offers a free installation service, and any user can find Typst-Coder-1.5B on GitHub to install. At the same time, huggingface.co provides the effect of Typst-Coder-1.5B install, users can directly use Typst-Coder-1.5B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Typst-Coder-1.5B install url in huggingface.co:

https://huggingface.co/TechxGenus/Typst-Coder-1.5B

Url of Typst-Coder-1.5B

Typst-Coder-1.5B huggingface.co Url

Provider of Typst-Coder-1.5B huggingface.co

TechxGenus
ORGANIZATIONS

Other API from TechxGenus