Model in Action πŸš€

from transformers import AutoModelWithLMHead, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("ManthanKulakarni/Text2JQLBuilder")
model = AutoModelWithLMHead.from_pretrained("ManthanKulakarni/Text2JQLBuilder")

def gen_sentence(words, max_length=64):
  input_text = words
  features = tokenizer([input_text], return_tensors='pt')

  output = model.generate(input_ids=features['input_ids'], 
               attention_mask=features['attention_mask'],
               max_length=max_length)

  return tokenizer.decode(output[0], skip_special_tokens=True)

words = "JQL: all story under project ACM"

gen_sentence(words)

# output: 'JQL: project = ACM'
Downloads last month
14
Safetensors
Model size
783M params
Tensor type
F32
Β·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.

Dataset used to train ManthanKulakarni/Text2JQLBuilder