[Python] Process finished with exit code -1073741819 (0xC0000005) Pycharm Transformers

Discussão em 'Python' iniciado por Stack, Dezembro 7, 2024.

  1. Stack

    Stack Membro Participativo

    When I try to run this code EVERY SINGLE TIME, I ended before fully loading the model even after I restarted everything.

    • transformers version: 4.46.2
    • Platform: Windows-10-10.0.22631-SP0
    • Python version: 3.11.0
    • Huggingface_hub version: 0.26.2
    • Safetensors version: 0.4.5
    • Accelerate version: 1.1.1
    • Accelerate config: not found
    • PyTorch version (GPU?): 2.5.1+cu121 (True)
    • Tensorflow version (GPU?): 2.18.0 (False)
    • Flax version (CPU?/GPU?/TPU?): not installed (NA)
    • Jax version: not installed
    • JaxLib version: not installed
    • Using distributed or parallel set-up in script?:
    • Using GPU in script?:
    • GPU type: NVIDIA GeForce RTX 4060 Laptop GPU

    from transformers import AutoModelForCausalLM, AutoTokenizer
    from transformers import TextIteratorStreamer, TextStreamer, StoppingCriteria
    if __name__ == "__main__":
    # Load your model and tokenizer
    model_id = "./Llama-3.2-3b-instruct"
    model = AutoModelForCausalLM.from_pretrained(model_id)
    tokenizer = AutoTokenizer.from_pretrained(model_id)


    Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
    Process finished with exit code -1073741819 (0xC0000005)


    Here's a screenshot for reference: screenshot cause I don't have enough credits :(

    Continue reading...

Compartilhe esta Página