Instructions to use Bearnardd/test_beard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bearnardd/test_beard with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Bearnardd/test_beard") model = AutoModelForCausalLM.from_pretrained("Bearnardd/test_beard", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse filesFiles changed (2)
- README.md+3-3
- pytorch_model.bin+1-1
23 unmodified lines242526272829303 unmodified lines343536373839404123 unmodified lines```pythonfrom transformers import pipelinegenerator = pipeline("text-generation", model="Bearnardd//tmp/tmpi3zgjgyj/Bearnardd/test_beard")outputs = generator("Hello, my llama is cute")```3 unmodified linesfrom transformers import AutoTokenizerfrom trl import AutoModelForCausalLMWithValueHeadtokenizer = AutoTokenizer.from_pretrained("Bearnardd//tmp/tmpi3zgjgyj/Bearnardd/test_beard")model = AutoModelForCausalLMWithValueHead.from_pretrained("Bearnardd//tmp/tmpi3zgjgyj/Bearnardd/test_beard")inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")outputs = model(**inputs, labels=inputs["input_ids"])23 unmodified lines242526272829303 unmodified lines343536373839404123 unmodified lines```pythonfrom transformers import pipelinegenerator = pipeline("text-generation", model="Bearnardd//tmp/tmp4xyolvq6/Bearnardd/test_beard")outputs = generator("Hello, my llama is cute")```3 unmodified linesfrom transformers import AutoTokenizerfrom trl import AutoModelForCausalLMWithValueHeadtokenizer = AutoTokenizer.from_pretrained("Bearnardd//tmp/tmp4xyolvq6/Bearnardd/test_beard")model = AutoModelForCausalLMWithValueHead.from_pretrained("Bearnardd//tmp/tmp4xyolvq6/Bearnardd/test_beard")inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")outputs = model(**inputs, labels=inputs["input_ids"])
123version https://git-lfs.github.com/spec/v1oid sha256:20e57a1ce53e8de739166491c695d1dd8e2b9cab64ddb15477c9a631e799b907size 510399237123version https://git-lfs.github.com/spec/v1oid sha256:b836e7019a4ca29a4397e6dfc7a39b33aabdfed536a2870adc0002b4f46547c8size 510399237
README.md+3-3
pytorch_model.bin+1-1