Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

noahshinn
/
ts-code2td

Translation
Transformers
PyTorch
English
gpt2
text-generation
custom_code
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use noahshinn/ts-code2td with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use noahshinn/ts-code2td with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "translation" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("translation", model="noahshinn/ts-code2td", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("noahshinn/ts-code2td", trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained("noahshinn/ts-code2td", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
ts-code2td
4.6 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
Noah Shinn
Update README.md
1dc5236 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    104 Bytes
    Update README.md about 3 years ago
  • config.json
    998 Bytes
    Add model files about 3 years ago
  • configuration_gpt2_mq.py
    9.47 kB
    Add model files about 3 years ago
  • modeling_gpt2_mq.py
    15.1 kB
    Add model files about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.ByteStorage",
    • "torch.FloatStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    4.6 GB
    xet
    Add model files about 3 years ago
  • tokenizer.json
    2.08 MB
    Add model files about 3 years ago
  • tokenizer_config.json
    428 Bytes
    Add model files about 3 years ago