This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Invoke-RestMethod -Uri "http://localhost:52415/v1/chat/completions" -Method Post -Headers @{"Content-Type"="application/json"} -Body '{"model": "meta-llama/Llama-3.1-70B-Instruct", "messages": [{"role": "user", "content": "テスト"}]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $PyScript = @" | |
| import site, os | |
| path = site.getsitepackages()[0] | |
| filepath = os.path.join(path, 'resource.py') | |
| with open(filepath, 'w') as f: | |
| f.write('''def getpagesize(*args, **kwargs): return 4096 | |
| class _RUsage: | |
| ru_maxrss = 0 | |
| def getrusage(*args, **kwargs): return _RUsage() | |
| def getrlimit(*args, **kwargs): return (8192, 8192) |