Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

SubhrajitSain
/
anwgpt3-355m

Question Answering
Transformers
Safetensors
English
gpt2
text-generation
conversational
anwgpt
anw
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use SubhrajitSain/anwgpt3-355m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use SubhrajitSain/anwgpt3-355m with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="SubhrajitSain/anwgpt3-355m")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("SubhrajitSain/anwgpt3-355m")
    model = AutoModelForCausalLM.from_pretrained("SubhrajitSain/anwgpt3-355m")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    inputs = tokenizer.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
anwgpt3-355m
1.13 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1269 commits
SubhrajitSain's picture
SubhrajitSain
added code
cb99e0a verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    5.27 kB
    added code 7 months ago
  • adapter_config.json
    638 Bytes
    Training in progress, step 100 7 months ago
  • adapter_model.safetensors
    418 MB
    xet
    Training in progress, step 125100 7 months ago
  • added_tokens.json
    51 Bytes
    Training in progress, step 100 7 months ago
  • config.json
    1.03 kB
    Upload model 7 months ago
  • generation_config.json
    154 Bytes
    Upload model 7 months ago
  • merges.txt
    456 kB
    Training in progress, step 100 7 months ago
  • model.safetensors
    710 MB
    xet
    Upload model 7 months ago
  • special_tokens_map.json
    910 Bytes
    Training in progress, step 100 7 months ago
  • tokenizer.json
    3.56 MB
    Training in progress, step 100 7 months ago
  • tokenizer_config.json
    1.35 kB
    Training in progress, step 100 7 months ago
  • training_args.bin
    5.11 kB
    xet
    Training in progress, step 120800 7 months ago
  • vocab.json
    999 kB
    Training in progress, step 100 7 months ago